1. 检查vsftp是否已安装。
#whereis vsftpd
2. 如果未安装,可以在安装光盘或镜像中找vsftpd安装包。
3. 安装命令#rpm -ivh vsftpd-xx.rpm
4. 用#whereis vsftpd 看安装路径
5. 配置/etc/vsftpd目录中的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 users to log in.
# When SELinux is enforcing check for SE bool ftp_home_dir
local_enabl