The brief process of building ftp service on linux.
1. Install
Install the corresponding software on the target host.
rpm -qa | grep vsftpd # 查看是否已经安装了vsftpd软件
yum install -y vsftpd # 安装
2. Configuration
After the installation is complete, you can edit the configuration file in this path and configure it as needed. The default is used here.
vi /etc/vsftpd/vsftpd.conf
The local_umask mask represents the permission to be removed. For example, 022 represents the uploaded file permission: 666-022=644 -> rw-r–r–
create new ftp user
useradd ftp_user
passwd ftp_user # 输入密码a123456
3. Start the vsftp service
systemctl start vsftpd.service
systemctl status vsftpd.service # 查看服务状态