您的位置:首页 > 运维架构 > Linux

centos6.x和centos7命令对比

2017-02-15 17:22 309 查看
功能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 --listsystemctl list-units -type=service或
systemctl list-unit-files|grep enabled
关闭防火墙service iptables stopsystemctl stop firewalld.servicecentos7改用firewalld防火墙
未完,待续...

更新时间:

2017-02-28
2017-02-16
2017-02-15

参考文章: http://www.lai18.com/content/8862711.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  命令 cenos