centos6.x和centos7命令对比

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6.x和centos7命令对比相关的知识,希望对你有一定的参考价值。

功能6.x7.x备注
启动服务service httpd start systemctl start httpd.service启动httpd
关闭服务service httpd stopsystemctl stop httpd.service关闭httpd
重启服务器service httpd restartsystemctl restart httpd.service重启httpd
查看服务状态service httpd statussystemctl 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命令对比的主要内容,如果未能解决你的问题,请参考以下文章

centos6.x_centos7.x差异改进明细

centos7和centos6的区别

centos7.x开机启动流程centos6.x开机启动流程

centos7.x开机启动流程centos6.x开机启动流程

CentOS6.x和CentOS7.x字符界面安装图形界面方法

CentOS7 使用yum命令安装Java SDK(openjdk)