Created
March 16, 2021 13:52
-
-
Save ianfinch/dd8767b94d432dc07e740b6a3c11fd95 to your computer and use it in GitHub Desktop.
Quick script to start a web server when I create a 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/sh | |
yum update -y | |
yum install httpd -y | |
service httpd start | |
chkconfig httpd on | |
echo "<html><head><title>Ian's Web Server</title></head><body><h1>Ian's Web Server</h1></body></html>" > /var/www/html/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment