vsftpd 启动异常 (code=exited, status=2)

vsftpd 启动异常

root@kali:~# service vsftpd start
root@kali:~# service vsftpd status
● vsftpd.service - vsftpd FTP server
   Loaded: loaded (/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2019-10-12 10:32:27 CST; 21s ago
  Process: 2540 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2)
  Process: 2539 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
 Main PID: 2540 (code=exited, status=2)

Oct 12 10:32:27 kali systemd[1]: Starting vsftpd FTP server...
Oct 12 10:32:27 kali systemd[1]: Started vsftpd FTP server.
Oct 12 10:32:27 kali systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Oct 12 10:32:27 kali systemd[1]: vsftpd.service: Failed with result 'exit-code'.

发现配置错误:

vsftpd 启动异常 (code=exited, status=2)_第1张图片

 

主要原因:ipV4和ipV6不能同时被监听,这边需要去掉一个监听设置,常规情况下只要去掉ipV6得就可以了。

vsftpd 启动异常 (code=exited, status=2)_第2张图片

重启后:

root@kali:~# service vsftpd stop
root@kali:~# service vsftpd start
root@kali:~# service vsftpd status
● vsftpd.service - vsftpd FTP server
   Loaded: loaded (/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Sat 2019-10-12 10:48:50 CST; 6s ago
  Process: 5956 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
 Main PID: 5957 (vsftpd)
    Tasks: 1 (limit: 4689)
   Memory: 640.0K
   CGroup: /system.slice/vsftpd.service
           └─5957 /usr/sbin/vsftpd /etc/vsftpd.conf

Oct 12 10:48:50 kali systemd[1]: Starting vsftpd FTP server...
Oct 12 10:48:50 kali systemd[1]: Started vsftpd FTP server.

 

 

你可能感兴趣的:(小工具)