Linux下设置代理

Linux下设置代理

史沛思
2025-03-31 / 0 评论 / 9 阅读 / 正在检测是否收录...
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
0

评论 (0)

取消