CentOS 6   

ervice httpd start  #启动
service httpd restart  #重新启动
service httpd stop  #停止服务 

 

CentOS 7   

systemctl start httpd #启动

systemctl stop httpd #停止

systemctl restart httpd #重启

  

  设置开机启动/关闭

systemctl enable httpd #开机启动

systemctl disable httpd #开机不启动

  检查httpd状态

systemctl status httpd

 

posted on 2019-09-02 09:40  汩汩-咕咚  阅读(120)  评论(0编辑  收藏  举报