Last active
March 19, 2023 22:02
-
-
Save snallami/bd58ecf0f1a512c610841735e22382c8 to your computer and use it in GitHub Desktop.
start httpd server from AWS user data
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 -y httpd | |
systemctl start httpd | |
systemctl enable httpd | |
echo "<h1> Hello from $(hostname -f) </h1>" > /var/www/html/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment