vsftpd: 500 OOPS: could not bind listening IPv4 socket
freebsd 6.0vsftpd-2.0.4 源码编译 standalone 模式
出现两个问题:
(1)
安装完后 :
# /usr/local/sbin/vsftpd &
500 OOPS: could not bind listening IPv4 socket
(2)
# ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.0.4)
Name (127.0.0.1:fcd): ftp
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable anonymous root
ftp: Login failed.
ftp>
请教各位大侠, 什么原因? :em14:谢谢! 原帖由 yjh777 于 2006-2-21 16:01 发表
freebsd 6.0
vsftpd-2.0.4 源码编译 standalone 模式
出现两个问题:
(1)
安装完后 :
# /usr/local/sbin/vsftpd &
500 OOPS: could not bind listening IPv4 socket
vsftpd.conf里listen怎么写的?
装vsftpd之前这个机器上有ftp服务吗?
原帖由 yjh777 于 2006-2-21 16:01 发表
(2)
# ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.0.4)
Name (127.0.0.1:fcd): ftp
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable anonymous root
ftp: Login failed.
ftp>
FAQ问题4
http://wolfg.iblog.cn/index.php?op=ViewArticle&articleId=2979
vsftpd.conf里listen怎么写的?
装vsftpd之前这个机器上有ftp服务吗?
listen=YES, 以前没有ftp服务。
用google搜了一下, 是因为同时指定了 inetd和standalone 两种运行方式,端口冲突了.
我停掉inetd的配置,就好用了.
FAQ问题4
http://wolfg.iblog.cn/index.php?op=ViewArticle&articleId=2979
翻译的很好,谢谢:D!
[ 本帖最后由 yjh777 于 2006-2-22 13:17 编辑 ] 我也遇到了跟你一样的问题。。。但有些不一样
500 OOPS: could not bind listening IPv4 socket
# ftp 127.0.0.1
Connected to 127.0.0.1.
500 OOPS: tcp_wrappers is set to YES but no tcp wrapper support compiled in
ftp>
直接就进来了。
配置为:
listen=YES
listen_port=21
tcp_wrappers=YES
listen=YES
anonymous_enable=NO
local_enable=YES
chroot_local_user=YES
停止xinetd服务,service xinetd stop ,然后 /usr/local/sbin/vsftpd &
一样报错。不过错不一样了。
# 500 OOPS: vsftpd: not configured for standalone, must be started from inetd
[ 本帖最后由 守住每一天 于 2007-5-8 11:56 编辑 ] 已经OK 了。谢谢· bsd下怎样察看什么进程占用了21端口??? 原帖由 北回归客 于 2007-8-30 09:58 发表 http://bbs.chinaunix.net/images/common/back.gif
bsd下怎样察看什么进程占用了21端口???
有没有netstat 我的大概也是这两种模式冲突了!
请问在哪看这种两种模式冲突,怎么修改呢!
谢谢
~ 像其它守护程序一样,vsftpd提供了standalone和inetd(inetd或xinetd)两种运行模式。简单解释一下,standalone一次性启动,运行期间一直驻留在内存中,优点是对接入信号反应快,缺点是损耗了一定的系统资源,因此经常应用于对实时反应要求较高的专业FTP服务器。inetd恰恰相反,由于只在外部连接发送请求时才调用FTP进程,因此不适合应用在同时连接数量较多的系统。此外,inetd模式不占用系统资源。除了反应速度和占用资源两方面的影响外,vsftpd还提供了一些额外的高级功能,如inetd模式支持per_IP(单一IP)限制,而standalone模式则更有利于PAM验证功能的应用。
1.xinetd运行模式
大多数较新的系统采用的是xinetd超级服务守护进程。使用“vi /etc/xinetd.d/vsftpd” 看一下它的内容,如下:
disable = no
socket_type = stream
wait = no
# 这表示设备是激活的,它正在使用标准的TCP Sockets。
如果“/etc/vsftpd.conf”中的有选项为“listen=YES”,注销它
最后,重启xinetd,命令如下:
$ /etc/rc.d/init.d/xinetd restart
需要注意的是,“/etc/xinetd.d”目录中仅能开启一个FTP服务。
2.standalone模式
standalone模式便于实现PAM验证功能。进入这种模式首先要关闭xinetd下的vsftpd,设置
“disable = yes”,或者注销掉“/etc/inetd.conf”中相应的行。然后修改“/etc/vsftpd.con
f”中的选项为“listen=YES”。 我也出现了这样的问题,楼上说得对,我解决了呵
页:
[1]
2