我在使用 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.