Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure ftp Service in CentOS7 system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to configure ftp services in the CentOS7 system", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to configure ftp services in a CentOS7 system.

1. Download vsftpd

Yum install-y vsftpd

two。 Set Boot self-boot

Systemctl enable vsftpd.service

3. Start

Systemctl start vsftpd.service

4. View listening port

Netstat-antup | grep ftp

5. Configure vsftpd local user mode (that is, configure user name, password, modify permissions)

Useradd ftptestpasswd ftptestmkdir / var/ftp/test # create a file directory for ftp services chown-R ftptest:ftptest / var/ftp/test # modify the owner of this directory to ftptest

6. Modify the configuration file: vim / etc/vsftpd/vsftpd.conf

# with the exception of the parameters mentioned below, you can keep the default values for other parameters. # modify the values of the following parameters anonymous_enable=NO # disable anonymous login to the FTP server local_enable=YES # allow local users to log in to the FTP server listen=YES # listen IPv4 sockets# add # comment out the following parameter # listen_ipv6=YES # turn off the listening IPv6 socketslocal_root=/var/ftp/testchroot_local_user=YESchroot_list_enable=YESchroot_list_file=/etc/vsftpd/chroot_listallow_writeable_chroot=YESpasv_enable=YESpasv_min_port=50000pasv_max_port=51000pasv_address=49.235.71.50

7. Create an exception user file

Vim / etc/vsftpd/chroot_list # users must create even without exception

8. Restart

Systemctl restart vsftpd.service

Note: if you are using a cloud server, be sure to remember to open the response port.

At this point, I believe you have a deeper understanding of "how to configure ftp services in the CentOS7 system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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: 0

*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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report