常用基本命令十一(后台服务管理)

CentOS6

1、service后台服务管理

1)service network status   查看指定服务的状态

2)service network stop    停止指定服务

3)service network start    启动指定服务

4)service network restart   重启指定服务

5)service --status-all      查看系统中所有的后台服务

 

2、chkconfig设置后台服务的自启配置

1)chkconfig                   查看所有服务器自启配置

2)chkconfig iptables off   关掉指定服务的自动启动

3)chkconfig iptables on   开启指定服务的自动启动

原文地址:https://www.cnblogs.com/heihouzi/p/8663270.html