gpt4 book ai didi

linux - 如何为 wget 设置代理?

转载 作者:IT老高 更新时间:2023-10-28 12:19:46 29 4
gpt4 key购买 nike

我想通过 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/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com