anonymous_enable=NO。local_enable=YES,write_enable=YES,chroot_local_user=YES。allow_writeable_chroot=YES。pasv_enable=YES,并设置端口范围(如pasv_min_port=1024,pasv_max_port=1048)。local_max_rate=1048576(1MB/s,按需调整)。binary_enable=YES。max_clients=100,max_per_ip=5。/etc/security/limits.conf,添加* soft nofile 65535。net.ipv4.tcp_rmem=4096 87380 16777216,net.ipv4.tcp_wmem=4096 65536 16777216。net.ipv4.tcp_fastopen=3。net.ipv4.tcp_congestion_control=cubic。rsa_cert_file=/etc/ssl/certs/your_cert.pem,rsa_private_key_file=/etc/ssl/private/your_key.pem。ufw allow 20/tcp,ufw allow 21/tcp,ufw allow 1024:1048/tcp。xferlog_enable=YES,定期分析/var/log/vsftpd.log。iftop、nload)监控网络流量。sudo systemctl restart vsftpd。参考来源:[1,2,3,4,5,7,8,9,10,11]