centos6.x和centos7命令对比
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6.x和centos7命令对比相关的知识,希望对你有一定的参考价值。
功能 | 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
本文出自 “悟透的杂货铺” 博客,请务必保留此出处http://wutou.blog.51cto.com/615096/1898145
以上是关于centos6.x和centos7命令对比的主要内容,如果未能解决你的问题,请参考以下文章
centos7.x开机启动流程centos6.x开机启动流程
centos7.x开机启动流程centos6.x开机启动流程