解决vsftp无法启动问题(转)

时间:2021-06-25 18:35:36

[root@node11 ~]# service vsftpd restart
Shutting down vsftpd:                                      [FAILED]
Starting vsftpd for vsftpd:                                [FAILED]
[root@D11 ~]#

经过一系列测试,发现21端口被占用(看21端口被哪个进程占用)

[root@node11 ~]# netstat -nlap |grep .21|more
tcp        0      0 0.0.0.0:6000                0.0.0.0:*                   LISTEN      32190/Xorg          
tcp        0      0 0.0.0.0:1521                0.0.0.0:*                   LISTEN      31903/tnslsnr       
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      1289/xinetd        

解决方法,关闭xinetd,ftp正常

[root@node11 ~]# service xinetd stop
Stopping xinetd:                                           [  OK  ]
[root@node11 ~]# service vsftpd start
Starting vsftpd for vsftpd:                                [  OK  ]
[root@node11 ~]# service xinetd start
Starting xinetd:                                           [  OK  ]