![VSFTPD - 服务无法以 listen=YES 启动](https://linux22.com/image/952777/VSFTPD%20-%20%E6%9C%8D%E5%8A%A1%E6%97%A0%E6%B3%95%E4%BB%A5%20listen%3DYES%20%E5%90%AF%E5%8A%A8.png)
我在使用 vsftpd 服务时遇到了麻烦。当我保留默认配置文件 ( vsftpd.conf
)时systemctl status vsftpd
,会显示输出Active: active (running)
,但当我设置时,listen=YES
输出变为Active: failed
。为什么?
答案1
如果启用listen
,则必须禁用listen_ipv6
。来自man vsftpd.conf
:
listen_ipv6 Like the listen parameter, except vsftpd will listen on an IPv6 socket instead of an IPv4 one. Note that a socket listening on the IPv6 "any" address (::) will accept both IPv6 and IPv4 con‐ nections by default. This parameter and the listen parameter are mutually exclusive.