Installing the FTP server method in Linux

Source: Internet
Author: User
Tags ftp client

1. Use rpm-qa| First The grep vsftpd command checks whether the installation is installed, and if FTP is not installed, use the Yum-y install VSFTPD installation (Ubuntu apt-get install)

After the installation, we will configure it for normal use. Edit the VSFTPD configuration file vi/etc/vsftpd/vsftpd.conf

VI Editor in the search mission is a slash "/", and then enter the content to find, carriage return to determine. Here are the options to change

Anonymous_enable=no #禁止匿名访问

Ascii_upload_enable #允许使用ascii码上传

Ascii_download_enable #允许使用ascii码下载

Userlist_deny=no # (This need to be added manually to the end) using the FTP user table, no user needs to add to login

After the setting is complete, ESC, colon wq carriage return. Start the VSFTPD service/etc/init.d/vsftpd start and see [OK] to start successfully.


2. Service vsftpd start to enable FTP to start automatically every time, run the command: Chkconfig--level vsftpd on


3. Set FTP Permissions

Vi/etc/vsftpd/vsftpd.conf
Change Anonymous_enable=yes to Anonymous_enable=no
ESC return, enter ": Wq" Save and exit


4. Add FTP Account and directory

useradd-d/alidata/www/wwwroot-s/sbin/nologin pwftp passwd pwftp chmod-r 755/alidata/www/wwwroot chown-r pwftp /ALIDATA/WWW/WWWROOT/ETC/RC.D/INIT.D/VSFTPD restart
Then use the account number pwftp password 123456
The test will be able to log on to FTP. Directory is/alidata/www/wwwroot

Modify firewall to allow FTP to use 21 ports through

Linux firewall configuration

Shut down SELinux After restarting the Firewall service iptables restart. Otherwise, you will not be connected to FTP.

Linux shutdown SELinux

Then reboot reboot the Linux server.

I use the FLASHFXP client software connection until the user's home directory (typically located in/home/user name) appears, then vsftpd successfully installed and run. Then you can upload and download the file.

FTP Client Connection

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.