解决ftp服务器在windows能上传成功,linux上传失败
1.首先确保,开启防火墙的20、21、22端口,3000-3005端口
2.代码里添加ftp.enterLocalPassiveMode()
3.修改配置文件
vi /etc/vsftpd/vsftpd.conf
pasv_enable=YES
pasv_min_port=3000
pasv_max_port=3005
1.首先确保,开启防火墙的20、21、22端口,3000-3005端口
2.代码里添加ftp.enterLocalPassiveMode()
3.修改配置文件
vi /etc/vsftpd/vsftpd.conf
pasv_enable=YES
pasv_min_port=3000
pasv_max_port=3005