Linux关闭防火墙

来源:互联网 发布:按键精灵 关联数组 编辑:程序博客网 时间:2024/05/16 16:23
永久打开或则关闭 chkconfig iptables on
chkconfig iptables off
即时生效:重启后还原
service iptables start
service iptables stop
开机默认VSFTP服务自动启动:
  方法一:(常用\方便)
    [root@localhost etc]# chkconfig --list|grep vsftpd ( 查看情况)
    vsftpd          0:off   1:off   2:off   3:off   4:off   5:off   6:off
    [root@localhost etc]# chkconfig vsftpd on  (执行ON设置)
  方法二:
修改文件 /etc/rc.local , 把行/usr/local/sbin/vsftpd & 插入文件中,以实现开机自动启动。
0 0
原创粉丝点击