小编Alp*_*ran的帖子

安装 vsftpd - 500 OOPS:无法绑定侦听 IPv4 套接字?

我必须在我的机器上设置一个 FTP 服务器。我已经使用以下命令安装了 vsftpd:

sudo apt-get install vsftpd
Run Code Online (Sandbox Code Playgroud)

然后我编辑vsftpd.conf了位置中的配置文件/etc。该文件包含:

#Set the server to run in standalone mode
listen=YES

#Enable anonymous access
local_enable=NO
anonymous_enable=YES

#Disable write access
write_enable=NO

#Set root directory for anon connections
anon_root=/var/ftp

#Limit retrieval rate
anon_max_rate=2048000

#Enable logging user login and file transfers. /var/log/vsftpd.log
xferlog_enable=YES

#Set interface and port
listen_address=192.120.43.250
listen_port=21
Run Code Online (Sandbox Code Playgroud)

IP 地址 192.120.43.250 是我服务器的 eth0。当我运行命令时

sudo vsftpd /etc/vsftpd.conf
Run Code Online (Sandbox Code Playgroud)

我收到错误:

500 OOPS: could not bind listening IPv4 socket
Run Code Online (Sandbox Code Playgroud)

要检查端口 21 上正在运行的内容,我运行了以下命令:

sudo netstat -tulpn …
Run Code Online (Sandbox Code Playgroud)

ftp socket ipv4 vsftpd

7
推荐指数
1
解决办法
4万
查看次数

标签 统计

ftp ×1

ipv4 ×1

socket ×1

vsftpd ×1