Tes*_*ter 2 .net proxy networking reverse-proxy wget
我一直在使用代理服务。现在,我需要删除。我忘记了如何将代理添加到wget。有人可以帮我回到不使用代理的普通wget上。截至目前,我正在使用
wget <link> --proxy=none
Run Code Online (Sandbox Code Playgroud)
但是当我使用预先编写的脚本进行安装时遇到了问题。遍历所有脚本并更改每个命令非常费力。任何更简单的解决方案将不胜感激。
谢谢
检查您的/etc/wgetrc或~/.wgetrc并删除代理设置或使用wget --no-proxy
如果您的操作系统是alpine/busybox那么wget可能与@Logu 使用的操作系统有所不同。
正确的命令是
wget --proxy off http://server:port/
Run Code Online (Sandbox Code Playgroud)
运行wget --help输出:
/ # wget --help
BusyBox v1.31.1 () multi-call binary.
Usage: wget [-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE]
[-o|--output-file FILE] [--header 'header: value'] [-Y|--proxy on/off]
[-P DIR] [-S|--server-response] [-U|--user-agent AGENT] [-T SEC] URL...
Retrieve files via HTTP or FTP
--spider Only check URL existence: $? is 0 if exists
-c Continue retrieval of aborted transfer
-q Quiet
-P DIR Save to DIR (default .)
-S Show server response
-T SEC Network read timeout is SEC seconds
-O FILE Save to FILE ('-' for stdout)
-o FILE Log messages to FILE
-U STR Use STR for User-Agent header
-Y on/off Use proxy
Run Code Online (Sandbox Code Playgroud)