vi ~/.bashrc
尾部添加
export http_proxy="http://yourproxyaddress:proxyport"
export https_proxy="http://yourproxyaddress:proxyport"
保存
source ~/.bashrc
git config --global http_proxy "proxy.xxx.com.cn:80"
git config --global https_proxy "proxy.xxx.com.cn:80"
git config --global https.postBuffer 524288000
git config --global https.postBuffer 21474838
apt代理设置,source.list软件源使用官方的
Acquire::http::Proxy "";
Acquire::ftp::Proxy "";
Acquire::https::Proxy "";
例如:
Acquire::http::Proxy "http://proxy.xxx.com.cn:80";
Acquire::ftp::Proxy "http://proxy.xxx.com.cn:80";
Acquire::https::Proxy "http://proxy.xxx.com.cn:80";
apt不设置代理,source.list软件源使用内网的
sudo vim /etc/yum.conf
加入
proxy=http://ip:port
sudo vim /etc/wgetrc
http_proxy=http://ip:port
https_proxy=http://ip:port
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- ovod.cn 版权所有 湘ICP备2023023988号-4
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务