Set up an FTP upload/download server in Centos

Source: Internet
Author: User

First, determine whether vsftpd is installed on your server.


Install vsftpd



After the installation is complete, restart the vsftpd service.



To the main configuration file of vsftpd


Change this to "NO". The default value is "YES" ("NO" means that anonymous users are prohibited from logging on, without comments)

Ftp users cannot jump out of their home directories. Otherwise, it is too dangerous and requires restrictions.



Comment out by default. Remove # and restart vsftpd.

Create an ftp user


(Yuanfei, a user with smart connection to ftp, cannot log on to the system. The default home directory is under the var/www/html folder)



Set the password for yuanfei.


Then modify the permission for the home directory. Otherwise, you cannot upload files.

Modify selinux



By default, enforcing is used to change it to disabled.



After selinu is modified, the service needs to be restarted. Because the server cannot be restarted, execute the preceding command to temporarily modify the selinux policy without restarting!


Restart the vsftpd service and automatically start it next time.



Disable Firewall



Then use the software to connect to ftp and test it.




Now, the complete ftp service configuration is complete. You can upload and download it from a local link!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.