Home>Article>Operation and Maintenance> How to install ftp service on CentOS

How to install ftp service on CentOS

angryTom
angryTom Original
2020-03-18 16:54:36 6510browse

How to install ftp service on CentOS

How to install ftp service on CentOS

ftp server software can use vsftpd. There are many ways to install it. Here, yum is used to install it. Because it is more convenient and faster.

Installation command:

yum install -y vsftpd

In this way, the ftp service software is installed.

Recommended learning:jquery video tutorial

After the installation is completed, two important directories, /etc/vsftpd/ and /var/ftp/, will be generated

[/etc/vsftpd/] There are four files in the directory

1. The ftpusers file specifies which users cannot access the ftp service. Are these users Linux system users or virtual users?

2. User_list file user list. When userlist_deny=NO in vsftpd, only users here are allowed to access the ftp service. Note that the ftpusers file is also detected at this time; when userlist_deny=YES (default) in vsftpd, Users here are not allowed to access the ftp service

3. The vsftpd.conf file is the core configuration file of vsftpd

4. The vsftpd_conf_migrate.sh file is some variables and setting scripts for vsftpd operations

The [/var/ftp/] directory is the root directory of anonymous users by default, which means that by default, files uploaded by anonymous users will be placed in this directory.

The core configuration file has the following basic configuration items

anonymous_enable=YES 是否允许匿名登录 local_enable=YES 是否允许本地账号(系统账号)登录 write_enable=YES 是否运行上传操作,如果要运行上传那么就要开启这个配置 listen=NO ftp服务的运行模式,=NO时表示xinetd模式;=YES时表示standlone模式。 userlist_enable=YES 控制 user_list 的功能,在上面有提到其实际意义

Commands to operate the FTP service

View the service status: service vsftpd status

Start the vsftpd service: service vsftpd start

Stop the vsftpd service: service vsftpd stop

Restart the vsftpd service: service vsftpd restart

This article comes from PHP Chinese website ,CentOS usage tutorialcolumn, please pay attention to this column for more related tutorials!

The above is the detailed content of How to install ftp service on CentOS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn