In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In this paper, through the summary of other installation processes, the simplest process is convenient for readers who need to quickly install and configure.
The simplest installation steps
[root@itdragon ~] # useradd ftpuser [root@itdragon ~] # passwd ftpuserChanging password for user ftpuser.New password: BAD PASSWORD: it is too shortBAD PASSWORD: is too simpleRetype new password: passwd: all authentication tokens updated successfully. [root@itdragon ~] # yum-y install vsftpd [root@itdragon ~] # ifconfig
Step 1: add ftp users
Step 2: set the ftp user password
Step 3: install vsftpd
Step 4: check the ip address
Step 5: link virtual machines locally using free FileZilla
Problems encountered
Connection failed
Status: waiting for retry. Status: connecting 192.168.0.11 VR 21... Error: no activity after 20 seconds, connection timeout error: unable to connect to server
Don't be discouraged, the installation is not smooth, everyone will have different problems according to their own environment. Here's my solution.
First of all, to make sure that both sides can communicate with pind, the virtual machine chooses bridging mode and can communicate with ping normally.
Then, Baidu
There are many kinds of solutions on the Internet, mainly aiming at three aspects.
Here I will post a few URLs, because I did not connect successfully according to the above practice of the website, and finally closed the firewall to solve the problem. I am relatively weak in this area, so I will not mislead the children. It is posted for the convenience of later revision.
The first action is to turn off anonymity and turn on passive mode
The second operation is to open port 21 of the firewall
The third operation is to modify the selinux and enable access to the public network.
[root@itdragon ~] # vim / etc/vsftpd/vsftpd.confanonymous_enable=NOpasv_min_port=30000pasv_max_port= 31000 [root @ itdragon ~] # service vsftpd restart [root@itdragon ~] # vim / etc/sysconfig/iptables-An INPUT-p tcp-m multiport-- dport 20 state NEW 21-m state-- state NEW-j ACCEPT-An INPUT-p tcp-m state-- state NEW-m tcp-- dport 21-j ACCEPT-An INPUT-p tcp-dport 30000 ACCEPT 31000-j ACCEPT [root@itdragon ~] # service iptables Restart [root@itdragon ~] # getsebool-a | grep ftpallow_ftpd_anon_write-- > offallow_ftpd_full_access-- > offallow_ftpd_use_cifs-- > offallow_ftpd_use_nfs-- > offftp_home_dir-- > offftpd_connect_db-- > offftpd_use_fusefs-- > offftpd_use_passive_mode-- > offhttpd_enable_ftp_server-- > offtftp_anon_write-- > offtftp_use_cifs-- > offtftp_use_nfs-- > off [root@itdragon ~] # setsebool-P allow_ftpd_full_access on [root@itdragon ~] # setsebool-P ftp_home_dir on
It is not enjoyable to turn off the firewall temporarily, turn off the firewall directly and permanently
[root@itdragon modprobe.d] # service iptables stopiptables: Setting chains to policy ACCEPT: filter [OK] iptables: Flushing firewall rules: [OK] iptables: Unloading modules: [OK] [root@itdragon modprobe.d] # chkconfig iptables off
Upload failed
An images folder was created under the nginx installation directory, and the error was prompted when uploading pictures through FileZilla.
Response: 553 Could not create file. Error: critical file transfer error
The solution is as follows
[root@itdragon html] # mkdir images [root@itdragon html] # chmod-R 777 images [root@itdragon html] # lltotal 12 RW Ruki. 1 root root 537 Nov 18 10:53 50x.htmldrwxrwxrwx. 2 root root 4096 Nov 18 10:55 images-rw-r--r--. 1 root root 612 Nov 18 10:53 index.html [root@itdragon html] # vim / etc/vsftpd/vsftpd.conf local_root=/var/ ftp [root @ itdragon html] # service vsftpd restart
Pay attention
The network should be able to communicate with ping.
The problem of firewall should be dealt with well.
Unable to create file problem
The above is the simplest nginx installation vsftpd process we have sorted out. If you have anything you don't understand when you are learning, you can leave a message below.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.