Install vsftp on CentOS, centosvsftp

Source: Internet
Author: User

Install vsftp on CentOS, centosvsftp

Install vsftp service on CentOS 1. Check whether the vsftpd service is installed on the CentOS server: rpm-q vsftpd indicates that the vsftpd service is installed if the following similar information is printed: if the vsftpd-3.0.2-21.el7.x86_64 does not output any information, it indicates that vsftpd service is not installed 2. If vsftpd service is not installed, run the following command to install vsftp software: yum-y install vsftpd3. Restart the vsftpd service after installation: service vsftpd restart4. Check whether the vsftpd service is running: ps-aux | grep vsftpd5. Open vsftpd in the/etc/vsftpd/directory. conf file: vim/etc/vsftpd. in conf, change anonymous_enable = YES to anonymous_enable. = NO: Anonymous logon is not allowed. Find chroot_local_user = YES and change it to chroot_local_user = NO6. Restart the vsftpd service: service vsftpd restart7. Go to the/home directory and create the ftp_storage directory: cd/homemkdir-p ftp_storage8. Set the "writable" permission for the ftp_storage directory. Otherwise, the file cannot be uploaded: chmod o + w/home/ftp_storage/9. Create a user for the vsftpd service, used to connect to/access the FTP service: useradd-s/sbin/nologin-d/home/ftp_storage/ftp_user. the user name is ftp_user, And the accessible directory is: /home/ftp_storage/if it already exists, this user can no longer create or replace it with another user name. 10. Set a password for user ftp_user: passwd ftp_user and enter the new password 11. Use the FTP client software to connect and upload files! 12. Remarks: The default FTP port is 21, and port 21 is used for permission authentication. In fact, file transmission is implemented through Port 20.

  

Blog: http://www.joyupx.com/blogDetail.html#/96

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.