chkconfig 常用命令:
# chkconfig –list 显示开机可以自动启动的服务
# chkconfig –add *** 新增开机自动启动***服务
# chkconfig –del *** 删除开机自动启动***服务
chkconfig 检视启动:
# chkconfig –list |grep iptables
iptables 0: 关闭 1: 关闭 2: 启用 3: 启用 4: 启用 5: 启用 6: 关闭
# chkconfig –level 2345 iptables off
下次开机 iptables 就不会再自动启动了。
不过,iptables 还是开著的比较好. 最好不要进行这个操作.