学习笔记之FTP服务器搭建简述(一)
首先使用本地镜像构建本地yum源
使用yum clean命令清楚yum源缓存,yum list命令获取yum源文件列表
使用yum install vsftpd -y安装vsftpd服务
使用yum install ftp -y安装ftp服务
使用systemctl stop firewalld和systemctl disable firewalld永久关闭防火墙
修改/etc/selinux/config文件将SELINUX=enforcing改为SELINUX=permissive或disable永久关闭selinux,使用setenforce 0命令关闭selinux使立即生效
使用cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.bak命令备份原vsftpd.conf
使用grep -v反向查找非注释部分,使其输出到新的vsftpd.conf文件中
修改/var/ftp/pub文件的所有者为ftp
修改配置文件并重启服务
使用setsebool -P ftpd_full_access=on命令
使用ftp登陆并验证