工具/原料
- HPBookPro14
- Linux7.6
方法/步骤
- 1
利用xshell登录linux 体系,查看是否安装了ftp。

- 2
安装vsftpd软件包
# yum-y install vsftpd

- 3
备份主配置文件
[root@localhost ~]# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.bak
[root@localhost ~]# ls /etc/vsftpd

- 4
编纂主配置文件,启用白名单。

- 5
编纂名单文件user_list ,添加test账号。
vi/etc/vsftpd/user_list

- 6
在体系中添加ftp测试账号test
# useradd test
# passwd test

- 7
封闭防火墙
# systemctl stop firewalld

- 8
启动ftp办事
# systemctl start vsftpd

- 9
客户端利用ftp东西登录并测试ftp办事。

- 10
登录乐成。
END










