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 小时前
logstash教程
运维
chen9455 小时前
k8s集群部署vector日志采集器
运维
chen9456 小时前
aws ec2部署harbor,使用s3存储
运维
轻松Ai享生活10 小时前
5 节课深入学习Linux Cgroups
linux
christine-rr10 小时前
linux常用命令(4)——压缩命令
linux·服务器·redis
三坛海会大神55511 小时前
LVS与Keepalived详解(二)LVS负载均衡实现实操
linux·负载均衡·lvs
東雪蓮☆11 小时前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
qq_2642208911 小时前
LVS负载均衡群集和LVS+Keepalived群集
运维·负载均衡·lvs
乌萨奇也要立志学C++11 小时前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器
雨落Liy11 小时前
Nginx 从入门到进阶:反向代理、负载均衡与高性能实战指南
运维·nginx·负载均衡