Linux installation ftp service

Target:

Set up FTP in Linux system

1. Preparation

1.1. Install vsftp service command:

yum install -y vsftpd

1.2, install ftp command:

yum install -y ftp

2. Test work

2.1, open the vsftp service

Enter the command: service vsftpd start, and if [OK] appears as shown in the figure, it means the startup is successful.



 

2.2, local test vsftp service

Enter the command: ftp localhost . Since vsftp is not configured, use the login name as anonymous and the password is empty to log in successfully. Enter the command: ls to view the directory information.




 

2.3, Windows operating system test

The ftp service just built cannot be accessed in the Windows operating system, and a message is displayed indicating that it cannot be accessed.



 

After testing, the operating system network of these two machines is normal.



 

The reason is that the firewall of the Linux system is not closed. Close the Linux system firewall command: service iptables stop . Then visit again to be successful.

 

 

Guess you like

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