Build ftp service on linux

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		

[External link image transfer failed, the source site may have an anti-leech mechanism, it is recommended to save the image failed, the source site may have an anti-leech mechanism, it is recommended to save the image and upload it directly (imICO2fgg3wU-1688120810480) (D:/Work/office -home/OneDrive/work/Help/Pictures_typora/image-20230630100954867.png)(D:/Work/office-home/OneDrive/work/Help/Pictures_typora/image-20230630100954867.png)]

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		# 查看服务状态

Guess you like

Origin blog.csdn.net/m0_61251376/article/details/131482157