vsftp:500 OOPS: could not bind listening IPv4 socket 解决办法
执行/usr/local/sbin/vsftpd &之后
vsftpd 的错误提示:500 OOPS: could not bind listening IPv4 socket
遇到这个问题我在通过编译源代码后安装vsftpd的时候遇到的,在这以前我已经通过rpm方式安装过了vsftp
因此其配置文件/etc/xinet.d/vsftpd还在并且是自启动的,也就是说是XINET模式;但是/etc/rc.local中又写入
了启动脚本,因此便发生了冲突,只需要关闭它们中的一个问题就解决了。
有以下两种方式:
/usr/local/sbin/vsftpd-pam /etc/vsftpd.conf &
service xinetd stop
1.使用XINET模式
去掉/etc/rc.local文件中的vsftpd的启动脚本/usr/local/sbin/vsftp &
运行service vsftpd restart命令启动vsftpd
2.使用STANDALONE独立模式
在服务器的负担比较重的情况下最好用这个模式
chkconfig vsftpd –level 3 off
或者直接修改/etc/xinetd.d/vsftpd文件,把disable=no改成disable=yes就行了!
500 OOPS: tcp_wrappers is set to YES but no tcp wrapper support compiled in
重新执行上面的命令后依然出现上面的错误.于是查了一下tcp_wrappers到底有没有用,有篇文章介绍http://freebsd.lab.mlc.edu.tw/tcp_wrappers/
仔细想想可能还需要重新编译vsftp,只是安全方面的设置,暂时先注释掉试试...
没想到又出现了下面的问题:
500 OOPS: vsftpd: not configured for standalone, must be started from inetd
后面加上&号后,还是出现上面的错误.突然想起以前好像有人说过最好不要用xinetd启动,于是就查一下如何以standalone方式启.
步骤如下:
1).vi /etc/xinetd.d/vsftpd
将disable=no 改为 disable=yes
2).vi /etc/vsftpd.conf
将listen=no 改为 listen=YES
3).service xinetd stop, 停掉xinetd服务.
4)./usr/local/sbin/vsftpd /etc/vsftpd.conf &
启动成功!
还真复杂
呵呵
Thank you! They are wonderful pieces of art and magic..
Thanks ! Definately is very impressive.
thanks you on this blog that writes very wise and loving thoughts.