proxychains4系统代理for linux(加速国内github下载速度,pip安装)
1.proxychains4代理安装:
sudo apt-get install proxychains4
2.找到配置文件/etc/proxychains4.conf在[ProxyList]后面添加以下内容:
socks5 127.0.0.1 10808
配置如下:
3.使用proxychains4(git clone):
proxychains4 git clone https://github.com/user/repo.git
pip:
proxychains4 pip install opuslib
4.注意(docker无法进行代理)docker代理可以创建文件:
/etc/systemd/system/docker.service.d/http-proxy.conf,内容如下:
[Service]
Environment="HTTP_PROXY=socks5://127.0.0.1:10808"
Environment="HTTPS_PROXY=socks5://127.0.0.1:10808"
Environment="NO_PROXY=localhost,127.0.0.1"