CentOS7系统操做httpd服务

CentOS7系统操做httpd服务

默认安装路径

/etc/httpd

第1、启动、终止、重启

#启动
systemctl start httpd.service

#中止
systemctl stop httpd.service

#重启
systemctl restart httpd.service

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

#开机启动
systemctl enable httpd.service

#开机不启动
systemctl disable httpd.service

第3、检查httpd状态

systemctl status httpd.service
相关文章
相关标签/搜索