Skip to content

Instantly share code, notes, and snippets.

@ianfinch
Created March 16, 2021 13:52
Embed
What would you like to do?
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