The blog is set up in four parts ,1.ftp Server setup 、2. Firewall settings 3. Tencent cloud security group 4.ftp Speed up
One 、ftp Server setup
1.1 install vsftpd
yum install vsftpd -y
1.2 start-up vsftpd service
1. start-up vsftp
systemctl start vsftpd
2. Check whether the startup is successful
1.3 To configure vsftpd file
1. Get into vsftpd.conf The configuration document
Please refer to （https://www.cnblogs.com/rainiplus/p/3739100.html）
2. Setup configuration document （ Disable anonymous user login ）
3. To configure ftp root directory
add to ftp Access to the root directory
4. add to ftp The logged in user
1. Add users （ Non system login users ）
Restrict the user's access to the directory path ：/data/data
Non system login users ：/sbin/nologin
useradd -m -d /home/data -s /sbin/nologin ftpuser
2. Set the password
1.4 Use Tencent cloud server configuration （ Otherwise, skip ）
FTP The client defaults to passive mode transmission , Therefore, in the process of communication, we will look for the server side IP Address to connect ,
Tencent cloud's Internet IP Not directly on the network card , So in passive mode, the client can't find a valid IP （ Only the intranet of cloud server can be found IP , Intranet IP Can't communicate with Internet directly ）, The following configuration is required
- Change the client transmission mode to active ;
- If the client network environment requires passive mode , So you need to vsftpd.conf Add these statements to the configuration file
pasv_address=XXX.XXX.XXX.XXX //( Extranet IP)
pasv_enable=YES Passive mode
pasv_min_port=1024 Client minimum access port
pasv_max_port=2048 Client maximum access port
Two 、 Firewall settings
centos7 Firewall used firewall , and centos7 following （iptables） Different versions of
Firewall configuration command ：
. start-up ：systemctl start firewalld
. close ：systemctl stop firewalld
. Check the status ：systemctl status firewalld
. Power on Disabled ：systemctl disable firewalld
. Power on enable ：systemctl enable firewalld ftp To configure ：
Service add ：
firewall-cmd --permanent --add-service=ftp
Port add （ Corresponding 1.4 Configured passive mode open port ）：
firewall-cmd --zone=public --add-port=1027-2048/tcp --permanent (--permanent permanent )
Reload the ：
3、 ... and 、 Tencent cloud security group configuration
Four 、ftp Speed up
vsftpd Default on DNS Inverse solution （ I don't know Baidu ）
Ban DNS Inverse solution , Login and upload and download are slow because DNS Caused by inverse solution
Need to add in profile /etc/vsftpd/vsftpd.conf
In the configuration ftp Server process , The main problem is caused by Tencent's cloud server , It has been inaccessible on the Internet ftp, By finding Tencent cloud's ftp The configuration document , Find out the problem , Finalized ftp Server configuration
- Under the cloud of Tencent CentOS7 To configure FTP The server
The first step is to install vsftp * yum -y install vsftpd The second step is configuration ftp file To achieve this, users can not only download ftp Content on You can also delete and add files to ftp The server Need to give ftp Give write permission to the directory of 1. ...
- Record Centos7 build ftp Servers and all kinds of pitfalls
Preface Today, I was asked by the manager to build ftp The server , Then I went to the Internet to search for the tutorial . After successful construction ( There are a lot of pits ) It is hereby recorded that . Because it is to record the whole operation process in case of later use, so it is more wordy . Catalog 1. install vsftpd 2. establish ...
- Used in virtual machines centos7 build ftp The server
Application scenarios Local windows As a client , virtual machine CentOS7 As server side , build FTP The server , Local access to the virtual machine to achieve file upload and download . How to install centos7 I'm not going to repeat . 1. stay centos7 Installation on vs ...
- Tencent cloud ： be based on Ubuntu build VNC Remote desktop service
be based on Ubuntu build VNC Remote desktop service Preface Mission time :5min ~ 10min Necessary knowledge This tutorial assumes that you have learned the following Ubuntu Basic operation : Connect SSH Carry out orders Edit the file If you haven't already ...
- Centos7 build FTP The server
I've searched a lot from the Internet Centos7 None of the tutorials on building a server succeeded, but this one , utilize Windows The resource manager connection test was successful . One . adopt yum install vsftpd yum install -y vsftpd Two . modify v ...
- [CentOs7] build ftp The server
Abstract vsftpd yes “very secure FTP daemon” Abbreviation , Security is one of its biggest characteristics .vsftpd It's a UNIX Class name of the server running on the operating system , It can run on things like Linux. ...
- [CentOs7] build ftp The server (2)—— Add users
Abstract The last article is finished ftp Server installation and anonymous access to content , Of course, for security reasons, anonymous access to the server is not allowed , So there is the content of this article , by ftp The server adds users , Access by changing users . vsftpd Add users FTP user ...
- [CentOs7] build ftp The server (3)—— Upload , download , Delete , rename , New folder
Abstract The last article introduced how to make ftp Add virtual users , This article will continue to practice how to upload , Download the file . Upload Use xftp Client upload file , As shown in the figure At this time, the upload status reports an error , Check the details From the error, we can see that it should be caused by the failure to create the file . Then we will ...
- centos7 build ftp Server and configure anonymous users
What is? FTP? FTP(File Transfer Protocol, File transfer protocol ), yes TCP/IP The Internet and Internet One of the first protocols used on . Used to transfer files from one computer to another , Or receive and view ...
- 1、NASA Super Cloud Library（SCL）
Empowering Data Management, Diagnosis, and Visualization of Cloud-Resolving Models (CRM) by Cloud Li ...
- php--- Group function group_concat()
group_concat() Function summary group_concat(), The manual says : This function returns a non... With a connection from a group NULL String result of value . More abstract , Difficult to understand . Let's understand it , In fact, it's like this :group_c ...
- arp spoofing
Today our tutorial will talk about Kali Linux Man in the Middle Attack. How to perform man in the mi ...
- About Firefox How browsers support ActiveX Control , A small Hellow World
Today try to develop a Firefox Plug in for . Although it's relatively simple , There are also many online tutorials , But I feel that some of the tutorials are troublesome , Those things were not used in the initial development process , So I wrote down the development process . I'm based on Mozilla Official tutorial development ...
- angular.js character string 1
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script sr ...
- Beginners Linux Command to master
echo: Print , Or output the specified string directly grammar :echo ( Options ) ( Parameters ) Options :/a: Sound a warning /b: Delete the previous character /c: Don't add line break at the end /f: Line breaks, but the cursor remains in its original position /n ...
- vue Installing a plug-in Refusing to install package with name '???'
Today I want to practice using vux frame , Installation error Look up the , When you create a project, the description is the same , Go to package.json hold name Change it to something else
- gitlab 10.8.1 transfer
Refer to the official website : https://docs.gitlab.com/ee/raketasks/backup_restore.html Backing up and restoring GitLab And ...
- Shiro Official quick start 10min Example source code parsing framework 2-Session
Shiro It maintains a set of its own session Management components , It can be used independently , Not just dependent WEB/Servlet/EJB Container environment , Make it session It can be used in any application . 2-Session) Mainly introduced in quic ...
- BZOJ 1226 School canteen ( Pressure DP)
Pressure DP f(i,j,k) Before presentation i−1 I've already had my meal , And in i The state after that is j I've also had dinner ( Binary representation of the following state ), The last person to eat is i After that k individual ( Be careful k It could be negative ) then If j&1=1 that ...