为什么我的 vsftp 服务无法启动?

sho*_*key 3 ftp

这是我的 /etc/vsftpd.conf 。

listen=on
anonymous_enable=YES
local_enable=YES
write_enable=YES
chroot_local_user=YES
local_root=/home/ftp
anon_root=/home/ftp
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
Run Code Online (Sandbox Code Playgroud)

在控制台中,

service vsftpd start
root@pengsir:/home/debian8# service vsftpd status
? vsftpd.service - vsftpd FTP server
   Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled)
   Active: failed (Result: exit-code) since Sat 2015-10-17 15:37:34 HKT; 4s ago
  Process: 3060 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2)
  Process: 3057 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
 Main PID: 3060 (code=exited, status=2)

Oct 17 15:37:34 pengsir systemd[1]: vsftpd.service: main process exited, co...NT
Oct 17 15:37:34 pengsir systemd[1]: Unit vsftpd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
Run Code Online (Sandbox Code Playgroud)

为什么vsftp服务无法启动?

小智 5

当我使用时sudo /usr/sbin/vsftpd,它给了

500 OOPS: unrecognised variable in config file: allow_ftpd_full_access. 
Run Code Online (Sandbox Code Playgroud)

一旦我评论了该行,vsftpd就开始了。

  • 在尝试找到 INVALIDARGUMENT 的原因并且没有发现它记录在任何地方,也没有找到关于如何指出 vsftpd.conf 设置中的语法或其他问题的解决方案后,您的解决方案挽救了这一天。 (2认同)