Liunx后台服务管理命令
service后台服务管理
1)查看指定服务的状态
service network status
2)停止指定服务
service network stop
3) 启动指定服务
service network start
4)重启指定服务
service network restart
5)查看系统中所有的后台服务
service --status-all
chkconfig设置后台服务的自启配置
1)查看所有服务器自启配置
chkconfig
2) 关掉指定服务的自动启动
chkconfig iptables off
3)开启指定服务的自动启动
chkconfig iptables on