Last active
March 9, 2020 01:25
-
-
Save nijjwal/8da28c9acff8baf45922e4c34ed77041 to your computer and use it in GitHub Desktop.
update ec2, install apache web server, start apache, and every time ec2 starts start apache web server, and create an index.html file with some content in the web root directory
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 on | |
cd /var/www/html | |
echo "<html><body>us-second-server</body></html>">index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment