Skip to content

Instantly share code, notes, and snippets.

@ianfinch
Created March 16, 2021 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianfinch/dd8767b94d432dc07e740b6a3c11fd95 to your computer and use it in GitHub Desktop.
Save ianfinch/dd8767b94d432dc07e740b6a3c11fd95 to your computer and use it in GitHub Desktop.
Quick script to start a web server when I create a server
#!/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