当用虚拟机安装LINUX时 用WinSCP连接时连接不上 原来是SUSE的防火墙禁止了外部访问 必须把防火墙关掉
短暂关闭 rcSuSEfirewall2 stop
这个命令指示这次关闭了防火墙 ,当虚拟机重启之后 防火墙的状态还是打开的
永久的关闭防火墙
首先检查防火墙# chkconfig --list|grep fire
SuSEfirewall2_init 0:off 1:off 2:off 3:on 4:on 5:on 6:off
SuSEfirewall2_setup 0:off 1:off 2:off 3:on 4:on 5:on 6:off
关闭
linux-ot1w:/home/macula/download/hadoop-0.20.2/conf # chkconfig SuSEfirewall2_setup off
关闭
linux-ot1w:/home/macula/download/hadoop-0.20.2/conf # chkconfig SuSEfirewall2_init off
linux-ot1w:/home/macula/download/hadoop-0.20.2/conf # chkconfig --list|grep fire
再次查看
SuSEfirewall2_init 0:off 1:off 2:off 3:off 4:off 5:off 6:off
SuSEfirewall2_setup 0:off 1:off 2:off 3:off 4:off 5:off 6:off