功能 | 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 |
|
未完,待续...
参考文章:
http://www.lai18.com/content/8862711.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。