安装软件
yum install vsftpd -y
启动测试
# systemctl start vsftpd
# netstat -nultp | grep 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2942/vsftpd
修改配置文件
vim /etc/vsftpd/vsftpd.conf
anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 xferlog_enable=YES connect_from_port_20=YES xferlog_file=/var/log/xferlog xferlog_std_format=YES ftpd_banner=Welcome to blah FTP service. listen=YES listen_port=21 pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES pasv_enable=YES use_localtime=YES pasv_min_port=4000 pasv_max_port=5000
查看配置文件
cat /etc/vsftpd/vsftpd.conf | grep '^[^#]'