CentOS-7下安装及配置vsftpd详细步骤(可匿名访问)

第一步安装vsftpd:

bash 复制代码
yum -y install vsftpd

第二步修改ftp主目录所属用户为用户ftp:

bash 复制代码
chown ftp /var/ftp/pub

第三步备份及配置ftp:

bash 复制代码
cp /etc/vsftpd/vsftpd.conf  ~/vsftpd.conf.bak

vim /etc/vsftpd/vsftpd.conf

配置如下图:

第四步启动ftp:

bash 复制代码
systemctl start vsftpd

第五步把ftp调成开机自动启动:

bash 复制代码
systemctl enable vsftpd

第六步永久关闭防火墙:

bash 复制代码
systemctl disable firewalld

第七步永久关闭selinux:

bash 复制代码
vim /etc/selinux/config

将SELINUX=enforcing 修改为SELINUX=disabled

如下图:

相关推荐
orion579 小时前
Missing Semester Class1:course overview and introduction of shell
linux
SkyWalking中文站13 小时前
认识 Horizon UI · 6/17:Trace 探索器
运维·监控·自动化运维
用户1204872216115 小时前
Linux驱动编译与加载
linux·嵌入式
火车叼位16 小时前
写给初级开发者:SSL、SSH、HTTPS 与证书体系全解析
运维
用户8055336980321 小时前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户8055336980321 小时前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
小猿姐1 天前
唯品会大规模数据库云原生实践:基于 KubeBlocks 管理数千实例的统一运维之路
运维·elasticsearch·云原生
七歌杜金房1 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
SkyWalking中文站2 天前
认识 Horizon UI · 5/17:3D 基础设施地图
运维·监控·自动化运维
tntxia2 天前
linux curl命令详解_curl详解
linux