rpm -qa |grep ftp 查看是否有安装过的ftp,有的话,用rpm -e --nodeps 进行卸载
在进行操作之前,我们首先把selinux和firewalled关闭
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld
设置selinux为permissive模式
[root@localhost ~]# setenforce 0
用yum源安装vsftpd:
[root@localhost ~]# yum -y install vsftpd
接下来,开始安装vsftpd服务
[root@localhost ~]# yum -y install ftp lftp //lftp和ftp
都是用来连接vsftpd的
[root@localhost etc]# systemctl start vsftpd.service //开启ftp
[root@localhost etc]# systemctl status vsftpd.service //查看ftp状态
进入/etc/vsftpd下,看到了vsftpd的配置文件,我们可以将它进行一个备份vsftpd.conf_bak