
windows安装wget
wget is used download files over network with different protocols. wget
can be get from most of the linux distributions with their respective package manager. But in windows we need to get and install wget
manually. In this tutorial we will look how to download, install and setup wget
for windows operating systems like 7, 8, 10, server etc. For more information of wget windows usage look following tutorial.
wget用于通过具有不同协议的网络下载文件。 wget
可以从大多数Linux发行版及其相应的包管理器中获取。 但是在Windows中,我们需要手动获取和安装wget
。 在本教程中,我们将研究如何为Windows操作系统(如wget
,服务器等)下载,安装和设置wget
。有关wget Windows使用的更多信息,请参见以下教程。
http://www.poftut.com/wget-command-tutorial-examples-linux/
http://www.poftut.com/wget-command-tutorial-examples-linux/
从Sourceforge下载 (Download From Sourceforge)
Sourceforge provide support for a lot of opensource and free projects. wget
is one of them. We can download windows binaries from following links.
Sourceforge为许多开源和免费项目提供支持。 wget
是其中之一。 我们可以从以下链接下载Windows二进制文件。
二进制文件 (Binaries)
http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-bin.zip
http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-bin.zip
源文件 (Source Files)
http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-src-setup.exe
http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-src-setup.exe
文献资料 (Documentation)
http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-doc.zip
http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-doc.zip
从Eternallybored下载 (Download From Eternallybored)
Eternallybored.org is a web site provides GNU projects windows binaries. We can download wget
from following links.
Eternallybored.org是一个提供GNU项目Windows二进制文件的网站。 我们可以从以下链接下载wget
。
32位二进制 (32 Bit Binary)
https://eternallybored.org/misc/wget/releases/wget-1.19.1-win32.zip
https://eternallybored.org/misc/wget/releases/wget-1.19.1-win32.zip
64位二进制 (64 Bit Binary)
https://eternallybored.org/misc/wget/releases/wget-1.19.1-win64.zip
https://eternallybored.org/misc/wget/releases/wget-1.19.1-win64.zip
安装 (Installation)
Download wget.exe
or similar files and extract if required.
下载wget.exe
或类似文件并根据需要解压缩。
Then create a folder named wget
in the program files.
然后在程序文件中创建一个名为wget
的文件夹。
> mkdir wget
复制档案 (Copy Files)
We will copy file or files to the newly created folder named wget
. The full path of wget
is C:\Program Files\wget
.
我们会将一个或多个文件复制到名为wget
的新创建的文件夹中。 wget
的完整路径是C:\Program Files\wget
。
> copy "c:\Users\ismail\Downloads\wget64.exe" "c:\Program Files\wget\"

将Wget路径添加到环境变量 (Add Wget Path To Environment Variables)
Now we will add the current path of wget binary to the system path.
现在,我们将wget binary的当前路径添加到系统路径。
Computer
-> Advenced System Settings
-> Advenced
-> Environment Variables
-> Path
System variable.
Computer
-> Advenced System Settings
-> Advenced
-> Environment Variables
-> Path
系统变量。
Add the following line. This will add wget
path to the PATH variable which is used to locate commands and binaries. So we can use wget
from different directories and drives without providing the whole wget
binary path.
添加以下行。 这会将wget
路径添加到PATH变量中,该变量用于定位命令和二进制文件。 因此,我们可以使用不同目录和驱动器中的wget
,而无需提供完整的wget
二进制路径。
;C:\Program Files\wget

运行Wget Windows (Run Wget Windows)
Now open new MS-DOS or Powershell terminal to run wget
command.
现在打开新的MS-DOS或Powershell终端以运行wget
命令。
>wget64.exe --help

windows安装wget