Some Socks5 Proxy setting

Git

1
2
3
4
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy

Curl

.curlrc
1
echo 'socks5 = "127.0.0.1:1080"' >> ~/.curlrc
  • ALL_PROXY
1
export ALL_PROXY=socks5://127.0.0.1:1080

Wget

EVN Config
1
2
xport http_proxy=http://127.0.0.1:1080
xport http_proxy=httpS://127.0.0.1:1080

.wgetrc

~/.wgetrc
1
2
3
4
5
6
https_proxy = http://127.0.0.1:8087/
http_proxy = http://127.0.0.1:8087/
ftp_proxy = http://127.0.0.1:8087/

# If you do not want to use proxy at all, set this to off.
use_proxy = on

-e

1
wget -c -r -np -k -L -p -e "http_proxy=http://127.0.0.1:1080" url

Pip

1
sudo pacman -S proxychains
  • vim /etc/proxychains.conf
/etc/proxychains.conf
1
2
[ProxyList]
socks5 127.0.0.1 1080
  • usage
1
proxychains pip install <package_name>

参考


本站由 VITAN 使用 Stellar 主题创建。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。