Home > Operation and Maintenance > Linux Operation and Maintenance > How to set up ftp server in linux system

How to set up ftp server in linux system

王林
Release: 2019-11-14 18:12:20
Original
5451 people have browsed it

How to set up ftp server in linux system

1. Check the installation of vsftpd software

Use the following command:

#rpm -qa |grep vsftpd
Copy after login

You can detect whether vsftpd software is installed. If it is not installed, use the YUM command to install it.

2. Start the service

Use vsftpd software, which mainly includes the following commands:

Start ftp command

#service vsftpd start
Copy after login

Stop ftp command

#service vsftpd stop
Copy after login

Restart ftp command

#service vsftpd restart
Copy after login

3. vsftpd configuration

There are three main ftp configuration files, located in /etc In the /vsftpd/ directory, they are:

ftpusers This file is used to specify those users who cannot access the ftp server

user_list This file is used to The indicated default account cannot access ftp vsftpd.conf by default. The main configuration file of vsftpd

4. Log in as an anonymous user

We remove the configuration file vsftpd. conf inside anon_upload_enable=YES anon_mkdir_write_enable=YES The # in front of the two items can complete the configuration of anonymous users. At this time, anonymous users can log in to upload and download files. Remember to restart the service after modifying the configuration file

5. Creation and use of non-anonymous accounts

vsftpd service and system users are related to each other. For example, we create a name Open the browser for testwww

#useradd testwww #passwd testwww
Copy after login

6 and login method

: Enter ftp://vsftp machine ip/ on the browser;

file Open: Enter ftp://vsftp machine ip/ in the folder;

can be selected by right-clicking to log in.

Recommended tutorial: Linux tutorial

The above is the detailed content of How to set up ftp server in linux system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template