Simple and fast setup of FTP server environment under Linux

Source: Internet
Author: User
Tags ftp

Whether Linux or Windows hosts are required to configure the FTP server will be, the following for you in the Linux system to build the FTP server environment details, there is a need to understand and small set to learn.

1, SSH Landing server

2, yum installation vsftpd

installation command: Yum install vsftpd

3, modify configuration, increase start-up

Modify configuration: vi/etc/vsftpd/vsftpd.conf to set the Anonymous_enable=yes value to no, increase boot startup, command:

Chkconfig–level vsftpd on

4, increase the FTP user, and set the password

Command: Useradd ftplinli-s/sbin/nologin-d/www Ftplinli for FTP account,/WWW for FTP specified directory path, run this command and then enter the passwd Ftplinli after entering the password two times

5. Set permissions for FTP-specified directories created

Command: chmod 777 www The ftp directory created by www

6, start the FTP service

Command: Service vsftpd start

Problem encountered FTP not connected

1 login to the server with root user, enter directory/etc/vsftpd, view directory by command

[Root@localhost vsftpd]# CD/ETC/VSFTPD

[Root@localhost vsftpd]# ls

Ftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh

We can see that there are 4 files, we mainly modify the Ftpusers and user_list, with the VI editor into 2 files, the root user comments out or deleted.

After you finish this step, restart the FTP service.

Input command: Service vsftpd restart

Now root can log in to FTP.

If the above method is not resolved, you can refer to the following methods

Check Step 1. Service iptables stop shutdown Firewall (NO)

2. Ping virtual machine from Windows CMD window on Linux IP found ping different, ifconfig command to view Etho not activated, and automatically assign appropriate IP (to find out why)

Solutions.

1. Click on the Virtual Machine menu vm--"Setting pop-up window click on the left side of the network adapter, the right appears network connection four ways to connect, choose Host-only, click OK, restart."

2 in Windows cmd window ping ip, (IP with ifconfig command to view eth0), if you find ping different, you will see Windows two virtual network card network segment with Linux on the same network segment, if not the IP can be.

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.