Deployment of FTP, if not previously set up, just start looking for information on the Internet when a variety of complex parameter configuration, look at the dizziness, here the most important part of the show out.
1. Installing VSFTPD
Yum Install-y vsftpd
2. If this is the default configuration, verify that the following four parameters are correct. The red ones are very important.
Vi/etc/vsftpd/vsftpd.conf
Anonymous_enable=no
Local_enable=yes
Write_enable=yes
Chroot_local_user=yes
3. Add user and Set password
adduser-d/web/data/www-g ftp-s/sbin/nologin yfftp
passwd yfftp
4. Turn on FTP
Service VSFTPD Start
According to the above method should be able to access the FTP normal, if still cannot access please check if your firewall is on, you can release Port 21st.
Extended Reading
vsftpd.conf Configuration Instructions
Anonymous_enable=yes/no (YES)
Controls whether anonymous users are allowed to log in, YES to allow anonymous login, no is not allowed. The default value is yes.
Local_enable=yes/no (YES)
Controls whether local users are allowed to log in, YES to allow local users to log in, no is not allowed. The default value is yes.
Write_enable=yes/no (YES)
Whether to allow login users to have write permission. is the global setting and the default value is yes.
Chroot_local_user=yes/no (NO)
Lets you specify whether users in the user list file are allowed to switch to the parent directory. The default value is No.
The following effects can be achieved by pairing:
A. When Chroot_list_enable=yes,chroot_local_user=yes, the user listed in the/etc/vsftpd.chroot_list file can switch to a different directory, a user who is not listed in the file, You cannot switch to a different directory.
B. When chroot_list_enable=yes,chroot_local_user=no, users listed in the/etc/vsftpd.chroot_list file cannot switch to a different directory, and users who are not listed in the file You can switch to a different directory.
C. When Chroot_list_enable=no,chroot_local_user=yes, all users cannot switch to a different directory.
D. When Chroot_list_enable=no,chroot_local_user=no, all users can switch to a different directory.
References
[1] CENTOS–FTP Installation and Configuration
http://shuany.iteye.com/blog/850568
[2]VSFTPD configuration file detailed
http://yuanbin.blog.51cto.com/363003/108262/
CentOS Quick Build FTP (beginner-Four steps)