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