1.httpd开机自启动
systemctl enable httpd.service
2.httpd开机不自启动
systemctl disable httpd.service
3.启动httpd
systemctl start httpd.service
4.停止httpd
systemctl stop httpd.service
5.重启httpd
systemctl restart httpd.service
6.检查httpd状态
systemctl status httpd.service