69 字
1 分钟
Linux 代理设置
proxychains
apt install proxychainsnano /etc/proxychains.conf# 在行尾写你的代理地址socks5 127.0.0.1 7891http 127.0.0.1 7890export 环境变量
export http_proxy="http://127.0.0.1:7890"export https_proxy="http://127.0.0.1:7890"export socks_proxy="socks://127.0.0.1:7890"export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"取消代理:
unset http_proxyunset https_proxygit 代理
# 设置git config --global http.proxy http://127.0.0.1:7890git config --global https.proxy http://127.0.0.1:7890
# 取消git config --global --unset http.proxygit config --global --unset https.proxy