FTP installation and configuration under Linux

 (1) Install ftp

yum install ftp –y

If the network is unreachable, ping 114.114.114.114. If it is, you need to do domain name resolution:

vi /etc/resolv.conf

plus

namesserver 114.114.114.114

Save and exit.

(2) Create an FTP account

useradd -d /home/test ftpuser1
passwd ftpuser1

 (3) Modify the ftp configuration file

vi /etc/vsftpd/vsftpd.conf

Modify anonymous_enable=NO
and finally add the following line at the end of the file:

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
anonymous_enable=NO
use_localtime=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_world_readable_only=NO
anon_other_write_enable=YES
chown_uploads=YES
chroot_local_user=YES

 restart ftp server

service vsftpd restart

 In order to make ftp have read and write permissions, you need to set SELINUX=disabled in /etc/sysconfig/selinux, and then restart the server

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326072066&siteId=291194637