作者热门文章
- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
我想通过 wget
使用代理下载一些东西:
HTTP Proxy: 127.0.0.1
Port: 8080
代理不需要用户名和密码。
我该怎么做?
最佳答案
对于通过/etc/wgetrc
的系统的所有用户或仅通过~/.wgetrc
文件的用户:
use_proxy=yes
http_proxy=127.0.0.1:8080
https_proxy=127.0.0.1:8080
或通过放置在 URL 之后的 -e
选项:
wget ... -e use_proxy=yes -e http_proxy=127.0.0.1:8080 ...
关于linux - 如何为 wget 设置代理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11211705/
我是一名优秀的程序员,十分优秀!