终端不走代理已解决

首先得有个vpn…
在终端敲以下命令

export http_proxy="http://localhost:port"
export https_proxy="http://localhost:port"

我原来electron-ssr的本地监听端口:1087,怎么输入命令都不走代理
解决:
electron-ssr配置
本地监听端口:1080
http代理端口:12333
终端输入:

export http_proxy="http://127.0.0.1:12333"
export https_proxy="http://127.0.0.1:12333"

通过curl www.google.com命令可以测试终端走没走代理

猜你喜欢

转载自blog.csdn.net/weixin_43377336/article/details/87249688