vsftpd[9183]: warning: can't get client address: Socket operation on non-socket

今天在linux redhat7.2下执行service vsftpd start一直不能开启vsftpd服务,本来怀疑SELINUX的问题(其他ftp下载问题可以看下我的另外一篇博客Linux下ftp常见问题总结),具体错误如下

[root@localhost trainborne]# service vsftpd start
Redirecting to /bin/systemctl start  vsftpd.service
Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" and "journalctl -xe" for details.
接着我查看下状态出现如下这个错误

[root@localhost trainborne]# service vsftpd status
Redirecting to /bin/systemctl status  vsftpd.service
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

Nov 27 15:33:42 localhost.localdomain vsftpd[9183]: warning: can't get client address: Socket operation on non-socket
Nov 27 15:33:42 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=2
Nov 27 15:33:42 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
Nov 27 15:33:42 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
Nov 27 15:33:42 localhost.localdomain systemd[1]: vsftpd.service failed.
Nov 27 15:35:01 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
Nov 27 15:35:01 localhost.localdomain systemd[1]: Started Vsftpd ftp daemon.
Nov 27 15:35:37 localhost.localdomain systemd[1]: Stopping Vsftpd ftp daemon...
Nov 27 15:35:37 localhost.localdomain systemd[1]: Stopped Vsftpd ftp daemon.
Nov 27 15:35:38 localhost.localdomain systemd[1]: Stopped Vsftpd ftp daemon.
出现该问题主要是因为vsftpd.conf配置文件(具体目录/etc/vsftpd/vsftpd.conf)出现了问题,
解决方法:1.修改vsftpd.conf里面字段listen = NO=> listen=YES

                    2.将listen_ipv6=YES改为listen_ipv6=NO或者直接#listen_ipv6=YES屏蔽掉

                    3.netstat -anp |grep 21(查看下21端口是否被占用,一般ftp都是21端口,如果占用,将listen_port改为其他端口)

posted @ 2017-11-27 16:02  奔涌吧,后浪  阅读(36)  评论(0编辑  收藏  举报