网络文件共享服务主流—-FTP文件传输协议
ftp定义
文件传输协议(File Transfer Protocol)的简称,用于internet上的控制文件的双向传输。
ftp数据连接模式
命令连接:是指文件管理类命令,始终在线的持久性连接,直到用户退出登录为止
数据连接:是指数据传输,按需创建及关闭的连接。
数据传输格式:文件传输、二进制传输
数据传输模式:
主动模式:由服务器端创建数据连接
被动模式:由客户端创建数据连接
ftp应用程序—vsftpd
vsftpd虚拟用户配置
vsftpd虚拟用户的配置步骤如下:
准备环境
[root@yxr ~]# setenforce 0
[root@yxr ftproot]# sed -ri "s/^SELINUX\=enforcing/SELINUX\=disabled/g" /etc/selinux/config
[root@yxr ~]# systemctl stop firewalld
[root@yxr ftproot]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
安装依赖的程序:
[root@yxr ~]# cd /etc/yum.repos.d/
[root@yxr yum.repos.d]# yum -y install wget
[root@yxr yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
[root@yxr yum.repos.d]# yum clean all
[root@yxr yum.repos.d]# yum -y instal