✈️ 服务器代理设置

7

服务器全局代理

设置代理

http:

export http_proxy=http://127.0.0.1:7890

https:

export https_proxy=https://127.0.0.1:7890
取消代理

退出当前终端,立即失效

git代理

设置代理

http:

git config --global http.proxy http://192.168.5.5:7890

https:

git config --global https.proxy https://192.168.5.5:7890
取消代理

http:

git config --global --unset http.proxy

https:

git config --global --unset https.proxy