Vsftp:can only support ipv4 and ipv6 currently

最近在rhel7.1上安装vsftpd服务,出现了一些问题,下面我简单的叙述下过程并记录,以供以后参详。
1.使用yum 安装vsfptd服务

[root@shizhanxia.com ]# yum install vsftpd -y

2.安装完毕后,重启vsftp服务并设置开机启动。

[root@shizhanxia.com ]# systemctl enable vsftpd
[root@shizhanxia.com ]# systemctl restart vsftpd
Starting Vsftpd ftp daemon…
vsftpd.service: control process exited, code=exited status=1
Failed to start Vsftpd ftp daemon.
Unit vsftpd.service entered failed state.
vsftpd.service failed.

3.出现如下报错,请在配置文件中注释掉IPV6

systemd: Starting Vsftpd ftp daemon…
500 OOPS: can only support ipv4 and ipv6 currently
vsftpd.service: control process exited, code=exited status=2
Failed to start Vsftpd ftp daemon.
Unit vsftpd.service entered failed state.

4.设置listen=YES

# When “listen” directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES

5.故障解决

[root@shizhanxia.com ]# systemctl status vsftpd
● vsftpd.service – Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2020-08-18 16:39:51 CST; 4s ago
Process: 1680 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
Main PID: 1681 (vsftpd)
CGroup: /system.slice/vsftpd.service
└─1681 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

原创文章,作者:保哥,如若转载,请注明出处:https://www.shizhanxia.com/1313.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
保哥的头像保哥
上一篇 2024年7月15日 07:26
下一篇 2024年7月17日

相关推荐

发表回复

登录后才能评论