我已经使用代理很长一段时间了。现在我需要移除它。我忘记了我是如何将代理添加到wget的。有没有人可以帮我回到正常的wget,它不使用任何代理。到目前为止,我正在使用
wget <link> --proxy=none
但是当我使用预先编写的脚本进行安装时,我会遇到一个问题。搜索所有的脚本并更改每个命令是非常费力的。任何更简单的解决方案都将非常受欢迎。
谢谢
发布于 2020-07-16 16:34:28
如果你的操作系统是alpine
/busybox
,那么wget
可能与@Logu所使用的有所不同。
正确的命令是
wget --proxy off http://server:port/
运行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
https://stackoverflow.com/questions/51599501
复制相似问题