linux - proxy统一解决大法
访问量: 924
1. 启动你的本机 socks5 服务器
2. vim ~/.bashrc
export HTTP_PROXY="socks5h://127.0.0.1:1093" export HTTPS_PROXY="socks5h://127.0.0.1:1093" export FTP_PROXY="socks5h://127.0.0.1:1093" export ALL_PROXY="socks5h://127.0.0.1:1093" export http_proxy="socks5h://127.0.0.1:1093" export https_proxy="socks5h://127.0.0.1:1093" export ftp_proxy="socks5h://127.0.0.1:1093" export all_proxy="socks5h://127.0.0.1:1093"
3. 保存,重新 打开terminal
4. 验证.
$ curl google.com