解决filezilla不能上传文件到Linux搭建的FTP服务器

fileZilla开始连接不上服务器执行了如上操作就解决了这个问题。
解决办法:
分别执行:
iptables -F
iptables -X
但是然后又出现了下面的错误
报错信息:
响应: 553 Could not create file.
错误: 严重文件传输错误
解决filezilla不能上传文件到Linux搭建的FTP服务器
出现这个问题的原因开始的思考方向:
(1)检查应用服务器本身的权限。配置文件是否定义权限
(2)检查你需要写的文件夹的权限。
配置文件的权限是有的:
解决filezilla不能上传文件到Linux搭建的FTP服务器
但是我设置了最高的权限如下依旧不行。
[[email protected] ~]# ll /var/ftp/pub/ -d
drwxrwxrwx. 2 root root 62 10月 28 22:24 /var/ftp/pub/
说明权限都是对的:
那么久selinux限制了,
使用命令查出关于FTP的命令:
[[email protected] ~]# getsebool -a | grep ftp
ftpd_anon_write --> off
ftpd_connect_all_unreserved --> off
ftpd_connect_db --> off
ftpd_full_access --> off
ftpd_use_cifs --> off
ftpd_use_fusefs --> off
ftpd_use_nfs --> off
ftpd_use_passive_mode --> off
httpd_can_connect_ftp --> off
httpd_enable_ftp_server --> off
tftp_anon_write --> off
tftp_home_dir --> off
关闭相应的selinux命令:
[[email protected] ~]# setsebool -P allow_ftpd_anon_write on
[[email protected] ~]# setsebool -P allow_ftpd_full_access on

然后就成功上传文件
解决filezilla不能上传文件到Linux搭建的FTP服务器
总结:
一般无法连接上传文件的思考方向:
防火墙的关闭。
服务器本身的权限,配置文件是否定义权限。
自己写的文件夹的权限。
selinux的问题。