Difference between revisions of "Redhat7:Apache running"

From Define Wiki
Jump to navigation Jump to search
(Created page with "<syntaxhighlight> #install apache yum install httpd #start the service systemctl sart https.service #start the service automatically systemctl enable httpd.service #stop the service syst...")
 
(No difference)

Latest revision as of 10:17, 15 January 2015

#install apache
yum install httpd
#start the service
systemctl sart https.service
#start the service automatically
systemctl enable httpd.service
#stop the service
systemctl stop httpd.service


#restart the service
systemctl restart httpd.service
#reload the config
systemctl reload httpd.service