全局代理
1 | sudo vim ~/.bashrc |
添加:
1 | export http_proxy="http://127.0.0.1:2002" |
保存退出:
1 | source ~/.bashrc |
只在当前终端窗口使用代理
1 | export http_proxy="http://127.0.0.1:2002" |
单条命令使用代理。
1 | http_proxy=http://127.0.0.1:8123 curl ip.gs |
1 | https_proxy=http://127.0.0.1:8123 curl ip.gs |