如何为wget设置代理? [英] How to set proxy for wget?
本文介绍了如何为wget设置代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用代理通过 wget
下载某些内容:
I want to download something with wget
using a proxy:
HTTP Proxy: 127.0.0.1
Port: 8080
代理不需要用户名和密码.
The proxy does not need username and password.
我该怎么做?
推荐答案
对于通过/etc/wgetrc
的系统的所有用户,或者仅对于使用〜/.wgetrc的用户
文件:
For all users of the system via the /etc/wgetrc
or for the user only with the ~/.wgetrc
file:
use_proxy=yes
http_proxy=127.0.0.1:8080
https_proxy=127.0.0.1:8080
或通过位于URL后面的 -e
选项:
or via -e
options placed after the URL:
wget ... -e use_proxy=yes -e http_proxy=127.0.0.1:8080 ...
这篇关于如何为wget设置代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文