introduce This chapter mainly introduces the process of building an FTP server in Linux. The key point to master is the reasonable configuration of the configuration file. Knowledge Points The FTP used in Linux is vsftp
Install FTP Install using YUM
File Configuration After installation, there will be three configuration files in the /etc/vsftpd/ path. vsftpd.conf: main configuration file ftpusers: Specifies which users cannot access the FTP server. The users here include some important users such as root. user_list: Whether the specified users can access the FTP server is determined by the userlist_deny configuration in the vsftpd.conf file. userlist_enable=YES, userlist_deny=YES, userlist_file=/etc/vsftpd/user_list. These three configurations allow users in the file to access FTP. View the default configuration of the main configuration file
anonymous_enable=YES #Allow anonymous users local_enable=YES #Allow login using local user account write_enable=YES #Allow ftp users to write data connect_from_port_20=YES #Transmit data through port 20
Some other parameter descriptions include:
Create an FTP connection user
The user's default home directory is under /home, and the current user can only access the home directory. Change the user's home directory to /mnt Start FTP Service test Create a test file in the /mnt directory Connect FTP Solve the problem of common FTP login failure Linux has a security mechanism by default. You cannot connect to the ftp server using the ordinary ftp port 21, but you can use sftp. At this time, you need to turn off selinux, and modify the configuration file to restart the server. Change to selinux=disabled Method without restarting the server: setenforce 0 setenforce 1 : Set SELinux to enforcing mode Check SELinux status Summarize There are some other configuration methods that are not listed here for the time being. If you are interested, you can go and study them in depth. You may also be interested in:
|
<<: mysql5.7.20 installation and configuration method graphic tutorial (mac)
>>: JavaScript Design Pattern Command Pattern
String extraction without delimiters Question Req...
Storage rules for varchar In versions below 4.0, ...
Detailed explanation of linux touch command: 1. C...
Mind Map He probably looks like this: Most of the...
Preface As a DBA, you will often encounter some M...
This article example shares the specific code of ...
Preface BINARY and VARBINARY are somewhat similar...
This article shares the specific code of JavaScri...
Pull the image docker pull mysql View the complet...
Table of contents 1. Overview 1.1 Usage of queryS...
What is bubbling? There are three stages in DOM e...
Preface This article mainly shares with you an ex...
When OP opens a web page with the current firmwar...
Today I made a Spring Festival gold coin red enve...
Putting input and img on the same line, the img ta...