Created
October 26, 2017 19:44
-
-
Save alastori/806aa3eb3fd696ae70fc86c5e4ba5de5 to your computer and use it in GitHub Desktop.
Bash script to install Apache httpd Server in Enterprise Linux 7.x
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 | |
#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