In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Do not understand the construction of FTP server in Linux? In fact, it is not difficult to solve this problem. Let the editor take you to learn how to solve it. I hope you will gain a lot after reading this article.
With the CentOs6.8 installed on the vmware12, the windows10 on the physical machine can access the FTP server on the CentOs normally.
First, check to see if ftp-related installation packages are installed
# rpm-qa | the installation package of grep vsftpd / / ftp is vsftpd
Check that there are no related packages installed in my system, so pack the installation first.
# yum-y install vsftpd / / if the yum source is not configured here, you can install it directly with rpm.
Check to see if the installation is successful
Start the service and set the boot self-startup
# service vsftpd start / / start the service
# chkconfig-- level 35 vsftpd on / / set self-startup
# chkconfig-- list vsftpd / / check whether the setting is successful
3. Configure vsftpd file
The ftp server has three main configuration files, all of which are located in the / etc/vsftpd directory:
Ftpusers / / is used to specify which users cannot access the ftp server
Whether users in the user_list / / file can log in to the server depends on the userlist_enable and userlist_deny options in the vsftpd.conf file.
Main configuration file for vsftpd.conf / / ftp server
IV. Anonymous user access
Open vsftpd.conf
# vi / etc/vsftpd/vsftp.conf
Set these two options to YES: anon_upload_enable=YES and anon_mkdir_write_enable=YES (what is already available by default, just remove the previous'#')
This enables anonymous users to upload and download files. Ps: configuration file detail
V. access by non-anonymous users
1. Modify the configuration file
# vi / etc/vsftpd/vsftp.conf
Turn off anonymous user access first: anon_upload_enable=NO
Add: userlist_enable=YES, userlist_file=/etc/vsftpd/vsftpd.user_list, userlist_deny=NO at the end of the configuration file
(if you don't know the exact meaning, you can take a look at the configuration file for details.)
two。 Create a user
3. Here first test, directly use ftp1 login, found that the login is not on.
4. Put the user ftp in the / etc/vsftpd/vsftpd.user_list file.
# vi / etc/vsftpd/vsftpd.user_list
Write ftp1 in the file (one line represents a user), then save the exit and reload the service (# service vsftpd reload).
Access again, using the ftp1 user, you can log in to the ftp server.
Ps: if you don't understand the options in some vsftpd.conf configuration files, you can read the detailed description of the file!
Thank you for reading this article carefully. I hope it will be helpful for everyone to share the contents of the FTP server in Linux. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Wget-- no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gztar zvxf 1.5.5.tar.gzcd
© 2024 shulou.com SLNews company. All rights reserved.