RedHat系统服务控制机制详解
来源:Linux-cn.com
作者:Webmaster
时间:2007-05-05
点击:
[ 收藏] [ 投稿]
|
3. 关闭特定 runlevel 中属于 /etc/rc.d 或 xinetd 之服务
[root@pc80 root]# chkconfig --level 2345 iptables off
[root@pc80 root]# chkconfig --list iptables
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
|
4. 激活特定 runlevel 中属于 /etc/rc.d 或 xinetd 之服务
root@pc80 root]# chkconfig --level 2345 iptables on
[root@pc80 root]# chkconfig --list iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
|
5. 重设特定 runlevel 中属于 /etc/rc.d 或 xinetd 之服务默认值
[root@pc80 root]# chkconfig --level 2345 iptables off
[root@pc80 root]# chkconfig --list iptables
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@pc80 root]# chkconfig --level 2345 iptables reset
[root@pc80 root]# chkconfig --list iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
|
此外,附带一提为查询 xinetd 和 /etc/rc.d 目录下有所不同,主要在于前者并无 runlevel 的查询结果:
xinetd :
[root@pc80 root]# chkconfig --list wu-ftpd
wu-ftpd on
/etc/rc.d 目录
[root@pc80 root]# chkconfig --list iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
|
如果您对本文有任何疑问或者建议,请到讨论区发表您的意见:
>>
论坛入口 <<
上一篇:[网卡]安装D-Link 530TX网卡
下一篇:[网卡]3Com网卡的FAQ
【文章评论】
【收藏本文】
【推荐好友】
【打印本文】
【我要投稿】 【论坛讨论】
更多相关文章
|