CentOS7系统操作httpd服务

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

CentOS7系统操作httpd服务

默认安装路径

/etc/httpd

第一、启动、终止、重启

 #启动
systemctl start httpd.service

#停止
systemctl stop httpd.service

#重启
systemctl restart httpd.service

第二、设置开机启动/关闭

#开机启动
systemctl enable httpd.service

#开机不启动
systemctl disable httpd.service

第三、检查httpd状态

systemctl status httpd.service

转载于:https://my.oschina.net/u/3756690/blog/3020879

你可能感兴趣的:(CentOS7系统操作httpd服务)