https://blog.csdn.net/frank_abagnale/article/details/79378609 这个好

https://blog.csdn.net/zhangyuan12805/article/details/71425385/

 

配置文件里面

pasv_enable=NO

 

或者

ftp登陆命令行后,passive

 

https://blog.csdn.net/binsoft/article/details/44595677

http://blog.sina.com.cn/s/blog_5cdb72780100jwjt.html

https://blog.51cto.com/meiling/2071122

 

anonymous_enable=YES
local_enable=YES
local_root=/var/ftp/local
write_enable=YES
local_umask=002
xferlog_enable=YES
connect_from_port_20=YES
listen_port=9999999999999999
xferlog_file=/var/log/xferlog
xferlog_std_format=YES
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to blah FTP service.
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/user_list
tcp_wrappers=YES
use_localtime=YES
allow_writeable_chroot=YES

 

Ftp主动模式和被动模式以及java连接ftp模式设置

https://www.cnblogs.com/xiaoL/p/9714038.html

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注