vsftp启动时报错:500 OOPS: can only support ipv4 and ipv6 currently

问题现象

安装好vsftpd后,重新启动报错:Job for vsftpd.service failed because the control process exited with error code. See “systemctl status vsftpd.service” and “journalctl -xe” for details.

然后按提示输入journalctl -xe 查看详细日志,发现报错提示500 OOPS: can only support ipv4 and ipv6 currently之后,vsftp.service服务就退出了。

图片[1] - vsftp启动时报错:500 OOPS: can only support ipv4 and ipv6 currently - 正则时光

原因分析

如上查看详细日志,提示,仅支持ipv4和ipv6。说明是vsftpd.cnf配置文件的IP配置可能有问题。

查看配置文件中的listen参数,listen是ipv4,listen_ipv6是ipv6。可以看到两个都没有开启。系统默认一般支持ipv4。所以这里设置listen=YES。

注意:ipv4和ipv6不能同时被监听,两个只有一个为yes,一个为no,或者注释另一个

图片[2] - vsftp启动时报错:500 OOPS: can only support ipv4 and ipv6 currently - 正则时光

修改效果

修改了上面/etc/vsftpd/vsftpd.cnf配置文件的监听Ip信息后,再重启vsftpd服务。启动成功!

图片[3] - vsftp启动时报错:500 OOPS: can only support ipv4 and ipv6 currently - 正则时光
© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享