一、主要步骤
1、下载安装
2、配置服务器vsftpd.conf文件
配置用户访问策略有三种
a、匿名访问【不安全】,并且系统在配置为上传时,vsftpd.service 服务直接挂掉。可以用systemctl status vsftpd.service 查看错误码
b、系统服务器的用户(可以参考我下面的配置文件,测试通过)
c、通过设置虚拟用户,网上好多用例,感觉好复杂没有亲自测试。
3、通过客户端访问服务器
二、vsftpd.conf配置文件实例
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local use