Last active
March 28, 2020 20:15
-
-
Save rossarioking/f2a513c6812f5cf104f3c67b2cfa9c5f to your computer and use it in GitHub Desktop.
Bootstrap to install Apache on Amazon Linux 2
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 | |
| # Get Root Privilages | |
| sudo su | |
| # Install httpd (Amazon Linux v2) | |
| 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