在Ubuntu上使用vsftpd傳輸大文件,需進行以下操作:
安裝vsftpd:
sudo apt update
sudo apt install vsftpd
配置vsftpd:
編輯配置文件 /etc/vsftpd.conf
,關鍵設置:
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
local_enable=YES
chroot_local_user=YES
ssl_enable=YES
rsa_cert_file=/etc/ssl/private/vsftpd.crt
rsa_private_key_file=/etc/ssl/private/vsftpd.key
重啟服務:
sudo systemctl restart vsftpd
客戶端連接:
使用支持被動模式的FTP客戶端(如FileZilla),連接時選擇“被動模式”,即可傳輸大文件。
優化建議:
net.core.rmem_max
)提升網絡傳輸效率。