代理相关设置

export hostip=127.0.0.1
# export hostip=192.168.1.105
export https_proxy="http://${hostip}:7897"
export http_proxy="http://${hostip}:7897"
export all_proxy="socks5://${hostip}:7897"
export no_proxy="localhost,127.0.0.1,0.0.0.0,::1,.local,.svc,.cluster.local,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
export HTTPS_PROXY=$https_proxy
export HTTP_PROXY=$http_proxy
export ALL_PROXY=$all_proxy
export NO_PROXY=$no_proxy

 

posted @ 2026-11-01 00:25  叶建成  阅读(4)  评论(0)    收藏  举报