在CentOS系统中使用vsftpd时,可能会遇到一些常见的错误代码。以下是一些解决方法:
错误代码:500 OOPS: cannot change directory
getsebool -agrep ftpsetsebool -P ftpd_disable_trans 1 或者 setsebool -P ftp_home_dir 1service vsftpd restart。错误代码:500 OOPS: vsftpd: cannot locate user entry
anonymous_enable 设置为 NO。错误代码:500 OOPS: vsftpd: not configured for standalone, must be started from inetd
listenYES,并确保 /etc/xinetd.d/vsftpd 文件中的 disable 值为 yes。错误代码:500 OOPS: vsftpd: refusing to run with writable anonymous root
root:root,并将权限设置为 755。错误代码:200 PORT command successful. Consider using PASV.
pasv_min_port 10060 和 pasv_max_port 10070。通过以上步骤,通常可以解决CentOS系统中vsftpd遇到的大部分问题。如果问题仍然存在,建议查看vsftpd的日志文件(通常位于 /var/log/vsftpd.log)以获取更详细的错误信息,并根据具体情况进行进一步的排查。