Last active
July 17, 2019 15:43
-
-
Save amcginlay/062a686a8d3153a4bdd9cf955f25bddf to your computer and use it in GitHub Desktop.
AWS EC2 Simple Web Server
This file contains hidden or 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 | |
echo "<html><h1>This is Webserver X</h1></html>" > /var/www/html/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment