In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to solve the problem of linux ftp anonymous upload and download boot, which has a certain reference value. Interested friends can refer to it. I hope you can learn a lot after reading this article.
If you study in peacetime and often use the FTP server at work, you can set it to boot. Before setting it up, you need to know a few commands about self-startup.
1.chkconfig command
Main function: used to check and set up various services of the system. There are several important parameters, first understand-- list, chkconfig-- list: list all the commands that chkconfig knows. Chkconfig service name: on / off: enable and disable the service (usually boot or shutdown)
two。 Check whether vsftpd boot is set
Chkconfig-- list | grep vsftpd: "|" is the meaning of pipe, which is used to connect the two commands before and after. The output of the previous command is used as the input of the following command. Note that it is the standard input and output of the command, because the pipe command automatically ignores the wrong standard input.
A powerful text search tool in grep:linux system
The result of the above figure shows that vsftpd does not set self-boot at any level.
two。 Set vsftpd to boot automatically, command: chkconfig vsftpd on
You can see that vsftpd has been started at the level of 23-4-5, indicating that it has been set up successfully.
3. If you want to operate anonymously, first make sure that the anonymous_enable=YES in the vsftpd.conf configuration file
Server-side IP:192.168.12.2 (linux)
Client IP:192.168.12.1 (Win 10)
Echo: print the value of a variable or a given string, >: standard output redirection to override the correct input of commands into the specified file; > >: standard output redirection to correctly input commands into the specified file in an appended way
4. Log in to the client and download the test.txt file
5. To upload a file, you need to modify it in the vsftpd.conf configuration file, anon_ `upload_enable=YES, and enable the upload feature. If you want anonymous users to create and write files, you can enable anon_mkdir_write_enable=YES, and restart the vsftpd service after modification. Remember!
Implement the upload function:
If you encounter the following circumstances, don't worry, it may be that the permissions of the pub folder are not enough, just increase the permissions: chmod 777 / var/ftp/pub
Retest:
View on the server side:
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
Thank you for reading this article carefully. I hope the article "how to solve the problem of linux ftp anonymous upload and download boot" shared by the editor will be helpful to everyone. At the same time, I also hope you can support us and pay attention to the industry information channel. More related knowledge is 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
© 2024 shulou.com SLNews company. All rights reserved.