Last active
January 2, 2020 11:14
-
-
Save james-ni/200c660f424d85766e87c754e4667749 to your computer and use it in GitHub Desktop.
EC2 Bootstrap script
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
#!/bin/bash | |
yum update -y | |
yum install httpd -y | |
service httpd start | |
chkconfig httpd on | |
cd /var/www/html | |
echo "<html><h1>Hello! Welcome To My Webpage @ $HOSTNAME</h1></html>" > index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment