vsftpd 启动异常 (code=exited, status=2)
vsftpd 启动异常root@kali:~# service vsftpd startroot@kali:~# service vsftpd status● vsftpd.service - vsftpd FTP serverLoaded: loaded (/lib/systemd/system/vsftpd.service; disabled; vendor preset: ...
·
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'.
发现配置错误:
主要原因:ipV4和ipV6不能同时被监听,这边需要去掉一个监听设置,常规情况下只要去掉ipV6得就可以了。
重启后:
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.
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献2条内容
所有评论(0)