echo 'export http_proxy="http://192.168.1.20:8848"' >> ~/.bashrc
echo 'export https_proxy="http://192.168.1.20:8848"' >> ~/.bashrc
echo 'export all_proxy="socks5://192.168.1.20:8848"' >> ~/.bashrc
source ~/.bashrc
# 代理设置所有软件
git config --global http.proxy "http://192.168.1.20:8848"
git config --global https.proxy "http://192.168.1.20:8848"
echo 'Acquire::http::Proxy "http://192.168.1.20:8848";' | sudo tee /etc/apt/apt.conf.d/95proxy
版权属于:
史沛思
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论 (0)