Planning requires the game server to upload and modify files at any time, need to build FTP on the server,
Originally thought to modify a few configuration, open a port problem, did not expect to toss a night, record down.
1 VSFTPD server, if not installed yum-y install VSFTPD
Create a new user account and password for the FTP service
Useradd username
passwd username
2 VSFTPD Related Documents Introduction
Ftpusers is a blacklist that prohibits users from accessing FTP in Files (security considerations)
User_list
"1" userlist_enable=yes when User_list is enabled,
Userlist_deny=yes: User_list is a blacklist , that is, all users appearing on the list will be denied login;
Userlist_deny=no: User_list is a whitelist , that is, only users who appear on the list will be allowed to log in
(Users outside of User_list are denied access), and a special reminder is that when you use the whitelist,
Anonymous users will not be able to log in! Unless you explicitly add a row to the User_list: Anonymous
"2" userlist_enable= for No when user_list, all local users can access the FTP
3 Modifying the configuration of the vsftpd vsftpd.conf
Userlist_enable=yes
Userlist_deny=no
Tcp_wrappers=yes
pasv_min_port=61001
pasv_max_port=62000
Chroot_local_user=yes
Chroot_list_enable=yes
Chroot_list_file=/etc/vsftpd/chroot_list #可返回上一级
After modifying the restart VSFTPD
Modify firewall configuration
-A input-m state--state new-m tcp-p TCP--dport 21-j ACCEPT
-A input-p TCP--dport 61001:62000-j ACCEPT
-A output-p TCP--sport 61001:62000-j ACCEPT
Restarting the firewall
Server Setup FTP