proftpd 不工作?

Ram*_*ain 0 ftp

我在我的服务器上做了一些更新,之后 ftp 停止工作了!

proftpd 正在运行并监听端口 21,端口 21 在防火墙中是开放的!

但我从 filezilla 得到的仍然是:

Status: Resolving address of xxx
Status: Connecting to xxx.xx.xx.xx:21...
Status: Connection established, waiting for welcome message...
Error:  Could not connect to server
Run Code Online (Sandbox Code Playgroud)

use*_*517 8

检查 proftpd 是否正在运行

ps -ef | grep proftpd
proftpd  15530     1  0 21:26 ?        00:00:00 proftpd: (accepting connections)
iain     15731 13855  0 21:49 pts/1    00:00:00 grep proftpd
Run Code Online (Sandbox Code Playgroud)

找出绑定到端口 21 的内容

sudo lsof -i :21
COMMAND   PID    USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
proftpd 15530 proftpd    1u  IPv6 1641458      0t0  TCP *:ftp (LISTEN)
Run Code Online (Sandbox Code Playgroud)

您从上面获得的输出应该可以帮助您缩小范围。

编辑

您看到的问题可能是因为您以独立模式启动它,但 inetd 仍配置为管理该服务。您需要禁用此 inetd 行为。看看proftpd网站上的这个页面- 第 3 点是相关的。