FTP Server Setup under Linux

Source: Internet
Author: User
Tags ftp client

To build the FTP service under CentOS, proceed as follows.

1. Check if VSFTPD is installed and install VSFTPD if not installed.

1) to see if VSFTPD is installed on the system, you can execute the command: RPM-QA | grep vsftpd

2) If VSFTPD is not installed, install: Yum-y installed VSFTPD

2, create FTP users, such as Ftp_test. Command: useradd-s/sbin/nologin-d/home/ftp_test ftp_test

Attention:

1) directory try not to choose the root directory, here is/home/ftp_test, and ftp_test This directory do not create manually, or permissions will be a problem, the execution of the command will be automatically created

2) Pay attention to the permissions of the directory, if necessary, should set the appropriate permissions

3. Create a password for ftp_test users. Command: passwd ftp_test

After execution, enter 2 password confirmations to set the password.

4. Edit vsftpd configuration file, command: vim/etc/vsftpd/vsftpd.conf

Find anonymous_enable This configuration item, the default is yes, modified to No, indicating that anonymous users are not allowed to log on.

5, Start vsftp Service, command: Systemctl start Vsftpd.service

6. View the status of the FTP service, command: Systemctl status Vsftpd.service

7, the FTP client for connection access.

Reference: https://www.cnblogs.com/freeweb/p/6518257.html

The open and Close commands for the FTP service:

Open: # service VSFTPD start

Close: # service VSFTPD Stop

FTP Server Setup under Linux

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.