he-sb / tech

My blog related to technique.
MIT License
9 stars 2 forks source link

配置终端代理 #33

Closed he-sb closed 4 years ago

he-sb commented 4 years ago

Windows 10 :

set http_proxy=http://127.0.0.1:1081
set https_proxy=http://127.0.0.1:1081

测试是否走代理:

curl ip.gs

效果持续到当前 CMD 窗口关闭。

he-sb commented 4 years ago

Linux :

export ALL_PROXY=socks5://127.0.0.1:1080
export http_proxy=http://127.0.0.1:1081
export https_proxy=http://127.0.0.1:1081

参考链接:

  1. 命令行走代理的便捷方式 - 掘金