linux 防火墙的开启与关闭

来源:互联网 发布:推荐淘宝好的内衣店铺 编辑:程序博客网 时间:2024/05/21 10:07

小弟最近刚学linux
我想把linux的防火墙关闭,(我用的是虚拟机)
网上都到的解决方法如下
    永久打开或则关闭
        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 & 插入文件中,以实现开机自动启动。
  

原创粉丝点击