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.