Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to build FTP upload and download server with Centos

Shulou Source: shulou.com Published: 2022-05-31 11:42:49 09月23日 Update

In this article, the editor introduces in detail "how to build a FTP upload and download server for Centos". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to build a FTP upload and download server for Centos" can help you solve your doubts.

First determine whether vsftpd is installed on your server

Install vsftpd

Restart the vsftpd service after the installation is complete

To the main configuration file of vsftpd

Change this to no defaults to yes (changing to no means that anonymous users are prohibited from logging in and no comments are required)

Do not let ftp users jump out of their home directory, otherwise it will be too dangerous and need to be restricted.

It is commented out by default. Remove # and restart vsftpd.

Create a ftp user

(yuanfei this user Smart connection ftp cannot log in to the system, the default home directory is under the var/www/html folder)

Set a password for the user yuanfei

Then give home directory permission to modify, otherwise you can't upload files.

Modify selinux

The default is enforcing to change it to disabled.

Because the service needs to be restarted after modifying selinu, and because the server cannot be restarted, execute the above command to temporarily modify the policy of selinux. There is no need to restart!

Restart the vsftpd service and start it automatically next time

Turn off the firewall

Then use the software to link to ftp for testing.

After reading this, the article "how to build a FTP upload and download server for Centos" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, welcome to follow the industry information channel.

Tags: Services servers users uploads and downloads files articles directories contents comments logins proper dangerous commands passwords that is ideas folders new knowledge is smart Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno macOS Huawei Microsoft Docker