Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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