首页 > 其他 > 详细

CentOS7 服务启动命令

时间:2016-10-03 00:39:51      阅读:201      评论:0      收藏:0      [点我收藏+]

【CentOS7】服务启动命令与【CentOS5/6】不一样

常用的命令有:

systemctl disable networkmanager.service            //disable禁止开机启动 enable开机启动    

systemctl stop networkmanager.service                 //stop关闭网络还原服务 start/restart

systemctl disable firewalld.service                                        //禁止firewalld防火墙开机启动

systemctl stop firewalld.service                                             //关闭firewalld防火墙

systemctl disable iptables.service                                       //禁止iptables防火墙开机启动

systemctl stop iptables.service                                           //关闭iptables防火墙

systemctl restart network                                        //重启网卡服务

systemctl list-unit-files                                            //列出服务

ip addr                                                                       //查看IP


PS:

centos5/6:service 服务名 start|stop|restart             ifconfig  //查看IP

centos7:   systemctl start|stop|restart 服务名        ip addr  //查看IP


启用iptables防火墙:yum install iptables-services

                                   systemctl enable iptables.service

                                   systemctl restart iptables.service


本文出自 “高防服务器销售,自带运维” 博客,请务必保留此出处http://kenvik.blog.51cto.com/11000054/1858430

CentOS7 服务启动命令

原文:http://kenvik.blog.51cto.com/11000054/1858430

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!