Linux install vsftpd server

    Recently, I saw the network programming of python, and saw a small project of writing an ftp client in python. I plan to start Lianlian. In order to imitate the real environment, I did not open an ftp server on this machine, but chose to do the ftp server in linux in the virtual machine, and I chose vsftpd.

    Command used:

                         service vsftpd start -- start the vsftpd service

                         chkconfig vsftp on -- set the boot to start the ftp service

    Then to turn off the iptables and firewalld firewalls on linux:

                         service iptables stop

                         chkconfig iptables off

                         service firewalld stop

                         chkconfig firewalld off

    At this time, I successfully connected to the ftp server with filezilla on my windows 10 machine

    However, when I tried to operate ftp through the ftp service that comes with windows in cmd, I got 200 PORT command successful. Consider using PASV. This kind of error was reported. After checking it online, I found out that it was selinux in the linux kernel that was making trouble.

    Check the selinux service status:

                         sestatus

     Set selinux to turn off:

                         Modify the vim /etc/selinux/config file:

                         SELINUX=enforcing can be changed to disabled

     At this time, logging in to the server with the default user can upload, download or delete files.

     The operation of the user will not be repeated. For in-depth Linux server operation, please refer to the Bird Brother website.

                          

                         

Guess you like

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