Linux is simple and fast to build ftp server environment

  
Whether it is linux or windows host are required to configure ftp server, the following for you to introduce the ftp server environment details in the Linux system, there is a need to understand and can learn from Xiaobian learn.
1, SSH login server
2, yum installation vsftpd
Installation command: yum install vsftpd
3, modify the configuration, increase boot startup
Modify the configuration: vi /etc/vsftpd/vsftpd. Conf Set the value of anonymous_enable=YES to NO, increase boot, command:
chkconfig –level 35 vsftpd on
4. Add FTP user and set password
Command: useradd ftplinli -s /sbin /nologin -d /www where ftplinli is the FTP account, /www is the directory path for FTP. After running this command, enter passwd ftplinli and enter the password twice.
5. Set the permissions of the specified FTP directory. > Command: chmod 777 www where www is the created FTP directory
6, start the FTP service
Command: service vsftpd start
The problem encountered ftp connection is not
1) Log in as root Server, enter the directory /etc/vsftpd, view the directory by command
[root@localhost vsftpd]# cd /etc/vsftpd
[root@localhost vsftpd]# ls
ft Pusers user_list vsftpd.conf vsftpd_conf_migrate.sh
We can see that there are 4 files, we mainly modify ftpusers and user_list, use vi editor to enter 2 files, comment out or delete the root user.
After completing this step, restart the ftp service.
Enter the command: service vsftpd restart
Now root can log in to ftp.
If the above solution is not resolved, you can refer to the following method
Check step 1. service iptables stop Turn off the firewall (not available)
2. From the cmd window of the window, ping the virtual machine's Linux ip to find the ping is different, ifconfig The command to view etho is not activated, and automatically assign the corresponding ip (found reason)
Solution.
1. Click on the virtual machine's menu vm--"setting pop-up window, click on the left NetWork adapter, the right side of the NetWork Connection four connection methods, select host-only, click OK, restart.
2 ping ip in the window cmd window, (ip use eth command to view eth0), if you find ping is different, you must check whether the network segment of the two virtual NICs of windows is on the same network segment as linux, if It’s not ip.

Copyright © Windows knowledge All Rights Reserved