zoukankan      html  css  js  c++  java
  • Linux 解决 vsftpd 读取目录列表失败的问题。

    今天,给Linux装一个 vsftpd 。

    使用第三方 FTP软件 filezilla 进行登陆,出现如下错误:

       

     图没了,自己做了一个 将就看吧。 

    至于什么原因,我也没有深入研究。这里直接说 百度出来,能解决的办法:

    该错误是由 iptables 的配置引起的,临时的解决方法是执行如下命令:

    [root@localhost ~]# modprobe ip_nat_ftp

     再次登陆列表正常啦!

    但当你重新启动服务器则 iptables规则 失效,又会出现相同的情况,所以我们需要修改 /etc/sysconfig/iptables-config 文件,

    [root@localhost ~]# vi /etc/sysconfig/iptables-config
    
    # Load additional iptables modules (nat helpers)
    #   Default: -none-
    # Space separated list of nat helpers (e.g. 'ip_nat_ftp ip_nat_irc'), which
    # are loaded after the firewall rules are applied. Options for the helpers are
    # stored in /etc/modprobe.conf.
    IPTABLES_MODULES=""
    
    # Unload modules on restart and stop
    #   Value: yes|no,  default: yes
    # This option has to be 'yes' to get to a sane state for a firewall
    # restart or stop. Only set to 'no' if there are problems unloading netfilter
    # modules.
    IPTABLES_MODULES_UNLOAD="yes"
    
    ......

     IPTABLES_MODULES_UNLOAD="yes" 的意义:每次iptables停止或者重启都会Unload modules

     IPTABLES_MODULES=" " 的意义:每次防火墙规则应用以后加载的模块。

    解决办法:

    我们需要把

    IPTABLES_MODULES=" "

    修改为:

    IPTABLES_MODULES="ip_nat_ftp"

    这样重启服务器之后就不必再每次都执行 mobprobe啦。

    by 不言谢

    不要和别人比,要赢得是自己。(ง •̀_•́)ง
  • 相关阅读:
    internet连接共享被启用时 出现了一个错误 (null)
    mybatis01-1测试
    配置没有问题,虚拟机Ubuntu系统ifconfig没有网卡信息
    Ubuntu启动Apache
    VM虚拟机Linux系统eth0下面没有inet和inet6
    jQuery通过id和name获取值的区别
    1.4.3 ID遍历爬虫(每天一更)
    mysql中的SQL语句执行的顺序
    Mecanim动画系统丶
    html中常见的行内元素和块级元素,还有常见的行内块元素
  • 原文地址:https://www.cnblogs.com/byx1024/p/13051295.html
Copyright © 2011-2022 走看看