51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

centos7 和centos6 服务操作命令对比

centos7 和centos6 服务操作命令对比

以httpd为例子:

指令名称           centos 6                   centos 7
启动服务           service httpd start        systemctl start httpd.service
关闭服务           service httpd stop         systemctl stop httpd.service
重启服务           service httpd restart      systemctl restart httpd.service
查看服务状态       service httpd status        systemctl status httpd.service
设置服务开机启动   chkconfig httpd on          systemctl enable httpd.service
设置服务开机关闭   chkconfig httpd off         systemctl disable httpd.service
查看服务开机启动   chkconfig --list             systemctl list-units --type=service
赞(2)
未经允许不得转载:工具盒子 » centos7 和centos6 服务操作命令对比