aws-ec2-rhel8-apache24-bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/bash | |
yum update -y | |
dd if=/dev/zero of=/swapfile bs=128M count=32 | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
swapon -s | |
echo "/swapfile swap swap defaults 0 0" >> /etc/fstab | |
yum install httpd -y | |
chkconfig httpd on | |
service httpd start | |
echo '<html><head><title>It works!</title></head><body>It works!</body></html>' > /var/www/html/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment