Created
November 30, 2019 12:28
-
-
Save narwanimonish/ef6811dc6b8cc36a9d57fac6dc6e863f to your computer and use it in GitHub Desktop.
Install Apache ( httpd ) on Amazon Linux AMI 2
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 | |
sudo su | |
yum update -y | |
yum install -y httpd.x86_64 | |
systemctl start httpd.service | |
systemctl enable httpd.service | |
echo "Hello from $(hostname -f)" > /var/www/html/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment