Skip to content

Instantly share code, notes, and snippets.

@alastori
Created October 26, 2017 19:44
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 alastori/806aa3eb3fd696ae70fc86c5e4ba5de5 to your computer and use it in GitHub Desktop.
Save alastori/806aa3eb3fd696ae70fc86c5e4ba5de5 to your computer and use it in GitHub Desktop.
Bash script to install Apache httpd Server in Enterprise Linux 7.x
#!/bin/bash
#Bash script to install Apache httpd Server in Enterprise Linux 7.x
#Run this script as root
set -e # stop script execution on any error
#Install Apache httpd
yum -y install httpd
#check with: systemctl list-unit-files | grep httpd
#Start httpd Server and set to restart automatically after reboot
systemctl start httpd
#check with: systemctl status httpd
chkconfig httpd on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment