功能 | 6.x | 7.x | 备注 |
启动服务 | service httpd start | systemctl start httpd.service | 启动httpd |
关闭服务 | service httpd stop | systemctl stop httpd.service | 关闭httpd |
重启服务器 | service httpd restart | systemctl restart httpd.service | 重启httpd |
查看服务状态 | service httpd status | systemctl status httpd.service | 查看httpd状态 |
开机启动 | chkconfig httpd on | systemctl enable httpd.service | |
关闭开机启动 | chkconfig httpd off | systemctl disable httpd.servicce | |
查看开机启动项 | chkconfig --list | systemctl list-units -type=service或 systemctl list-unit-files|grep enabled |
|
关闭防火墙 | service iptables stop | systemctl stop firewalld.service | centos7改用firewalld防火墙 |
未完,待续...
更新时间:
2017-02-28
2017-02-16
2017-02-15
参考文章:
http://www.lai18.com/content/8862711.html
本文转自 piazini 51CTO博客,原文链接:http://blog.51cto.com/wutou/1898145