Chinaunix首页 | 论坛 | 博客
  • 博客访问: 181387
  • 博文数量: 33
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 552
  • 用 户 组: 普通用户
  • 注册时间: 2013-11-14 14:02
文章分类
文章存档

2015年(1)

2014年(24)

2013年(8)

我的朋友

分类: LINUX

2013-11-20 11:23:29

1、# chkconfig --list:显示开机可以自动启动的服务

结果:iptables    0:off    1:off    2:on    3:on    4:on    5:on    6:off表示iptables开机自动开启2、3、4、5级服务。


2、# chkconfig --add 命令名: 添加开机自动启动命令名服务

chkconfig --add iptables:开机自动启动iptables服务;

开机后通过命令iptables -L -n校验是否设置成功;


3、# chkconfig --del 命令名: 删除开机自动启动命令名服务;

chkconfig --del iptables:开机禁止启动iptables服务;

开机后通过命令iptables -L -n校验是否设置成功;

阅读(4802) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~