Terminal Socks5 Proxy

Terminal Socks5 Proxy

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>

参考


  Linux

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×