Git设置代理:
git config --global http.proxy http://192.168.x.xxx:xxxx
git config --global https.proxy https://192.168.x.xxx:xxxx
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
apt单独设置代理:
sudo vim /etc/apt/apt.conf.d/proxy.conf
加入如下内容:
Acquire::http::Proxy "http://192.168.x.xxx:xxxx";
Acquire::https::Proxy "https://192.168.x.xxx:xxxx";
网友评论