In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to solve the problems encountered by nginx installation vsftpd related knowledge, detailed and easy to understand, simple and fast operation, has a certain reference value, I believe that everyone reading this article how to solve the problems encountered by nginx installation vsftpd will have some gains, let's take a look at it.
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 FTP user password
Step 3: Install vsftpd
Step 4: Check IP address
Step 5: Use the free filezilla link VM locally
the problems encountered
connection failure
Status: Waiting for retry... Status: Connecting 192.168.0.11:21... Error: No activity after 20 seconds, connection timeout Error: Unable to connect to server
Don't be discouraged, installation is not smooth sailing, everyone will have different problems according to their own environment. Here's my solution.
First of all, to make sure that both sides can ping, virtual machine selection is bridge mode, can ping normally.
And then, hundreds.
There are many different solutions on the Internet, mainly for three aspects.
Here I will post a few URLs, because I did not connect successfully according to the practice above the website, and finally closed the firewall to solve the problem. I'm weak on this one, so I won't be a mistake. It was posted for later modification.
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 selinux and open the external network for access.
[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-a input -p tcp -m multiport --dport 20,21 -m state --state new -j accept-a input -p tcp -m state --state new -m tcp --dport 21 -j accept-a input -p tcp --dport 30000: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
Temporarily closing the firewall is not fun, directly and permanently closing the firewall
[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 an error occurred when uploading images via filezilla.
Response:553 could not create file. Error: Severe 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-r--r--. 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
careful
The network must be able to ping.
The firewall problem should be handled well
Unable to create file problem
About "how to solve the problem encountered in nginx installation vsftpd" The content of this article is introduced here, thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to solve the problems encountered by nginx installation vsftpd." If you still want to learn more knowledge, please pay attention to the industry information channel.
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: 227
*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.