In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the usage of docker container wget command". In daily operation, I believe many people have doubts about the usage of docker container wget command. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "the usage of docker container wget command"! Next, please follow the editor to study!
The wget command is used to download files from the specified URL. Wget is very stable, it has strong adaptability in the case of narrow bandwidth and unstable network. If the download fails due to network reasons, wget will keep trying until the whole file is downloaded.
If the server interrupts the download process, it will connect to the server again and continue the download from where it stopped. This is useful for downloading large files from servers that limit link time.
Wget is a tool for downloading files, which is used on the command line. Wget is open source software developed under Linux. We often download some software or restore backups from a remote server to a local server.
If we use a virtual host, we can only download it from a remote server to our computer disk and then upload it to the server using the ftp tool. It's a waste of time and energy. When it comes to the Linux container, it can be downloaded directly to the server without going through the upload step. Wget tool is small but fully functional, it supports breakpoint download function, supports FTP and HTTP download mode, supports proxy server and is easy to set up.
Commonly used commands
Use wget-O to download and save under a different file name (- O: download the file to the corresponding directory and modify the file name)
Wget-O wordpress.zip http://www.minjieren.com/download.aspx?id=1080
Use wget-b background download
Wget-b http://www.minjieren.com/wordpress-3.1-zh_CN.zip
Note: you can use the following command to view the download progress: tail-f wget-log
Use-spider: simulated download, will not download, but will check whether the website is good
[root@localhost ~] # wget-- spider www.baidu.com # does not download any files
Simulated download print server response
[root@localhost ~] # wget-S www.baidu.com # print server response
Set the specified number of times
[root@localhost ~] # wget-r-- tries=2 www.baidu.com (specify 2 attempts and then do not try again) [root@localhost ~] # wget-r-- tries=2-Q www.baidu.com (specify attempts and do not print intermediate results) this ends the study of "the usage of the docker container wget command", hoping to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.