1.安裝vsftp
yum -y install vsftpd 解決
2.允許root登錄vsftpd
(1)修改 /etc/vsftpd/ftpusers,將root用#註釋
(2)修改 /etc/vsftpd/user_list,將root用#註釋
**
3.上傳文件,553 Could not create file
(1) 查看SELinux設置: getsebool -a | grep ftp
要把allow_ftpd_full_access設置爲on
4. 修改ftp的根目錄只要修改/etc/vsftpd/vsftpd.conf文件即可:
加入如下幾行:
注:local_root 針對系統用戶
anon_root針對匿名用戶.
然後重啓服務 service vsftpd restart
5.vsftpd: 500 OOPS:vsftpd: refusing to run with writable root inside chroot ()錯誤的解決方法
在vsftpd 配置文件vsftpd.conf中加入 allow_writeable_chroot=YES
6.vsftp上傳文件可能需要關閉防火牆
systemctl stop firewalld.service
7.讓vsftpd服務開機自啓動
chkconfig vsftpd on