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

如下图:

相关推荐
阿巴~阿巴~5 分钟前
TCP性能优化秘籍:延迟应答、捎带确认与粘包破解之道
运维·服务器·网络·网络协议·udp·tcp
HuaYi_Sir5 分钟前
i.MX6ULL移植uboot Linux buildroot(二)
linux·运维·服务器
航Hang*43 分钟前
第五章:网络系统建设与运维(高级)—— VLAN高级特性
运维·服务器·网络·笔记·计算机网络·华为·ensp
小鹏linux1 小时前
【像素贪吃蛇小游戏】部署文档-linux篇
linux·运维·服务器
小白学大数据1 小时前
未来趋势:AI 时代下 python 爬虫技术的发展方向
运维·人工智能·爬虫·python·自动化
DD-WL1 小时前
PKI&&数字证书相关概念
linux·网络协议
路溪非溪1 小时前
Linux驱动中的红外遥控子系统
linux·arm开发·驱动开发
成都犀牛1 小时前
Ubuntu配置nginx
linux·nginx·ubuntu
qdprobot2 小时前
开源的在线串口调试助手支持macOS苹果电脑Windows系统Linux 浏览器webSerial
linux·运维·服务器·人工智能·mixly·小智ai·webserial
wdfk_prog2 小时前
[Linux]学习笔记系列 -- [fs]namespace
linux·笔记·学习