he-sb/tech

配置终端代理

he-sb opened this issue · 1 comments

he-sb commented

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

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. 命令行走代理的便捷方式 - 掘金