Linux 常用工具指定代理
APT 配置文件 /etc/apt/apt.conf.d/proxy.conf Acquire { http::Proxy "http://<ip>:<port>"; https::Proxy "http://<ip>:<port>"; } 命令行临时指定 -o Acquire::http::Proxy="http://<ip>:<port>" -o Acquire::https::Proxy="http://<ip>:<port>" WGET 环境变量 export HTTP_PROXY="http://<ip>:<port>" export HTTPS_PROXY="http://<ip>:<port>" 配置文件 /etc/wgetrc 或者 ~/.wgetrc # You can set the default proxies for Wget to use for http, https, and ftp. # They will override the value in the environment. #https_proxy = http://proxy.yoyodyne.com:18023/ #http_proxy = http://proxy.yoyodyne.com:18023/ #ftp_proxy = http://proxy.yoyodyne.com:18023/ # If you do not want to use proxy at all, set this to off. #use_proxy = on 命令行临时指定 -e "http_proxy=http://<ip>:<port>" -e "https_proxy=http://<ip>:<port>"