通過vsftp搭建ftp服務器。

1.安裝vsftp。

yum install vsftpd -y
systemctl start vsftpd
systemctl enable vsftpd
systemctl status vsftpd

CentOS-Stream-10 搭建FTP服務器之虛擬用户訪問(一)_虛擬用户

CentOS-Stream-10 搭建FTP服務器之虛擬用户訪問(一)_linux_02

2.關掉selinux。

3.防火牆開放ftp服務器。

firewall-cmd --add-service=ftp --permanent
firewall-cmd --reload

CentOS-Stream-10 搭建FTP服務器之虛擬用户訪問(一)_centos系統_03

經過多天反覆搭建測試,出現各種錯誤,網絡上各種方案都不能搭建成功,如果想用vsftp虛擬用户,請用老版本linux系統搭建。