终端走代理

终端走代理

永久方式设置:

vim .zshrc

根据自己代理的 ip 和 端口设置以下内容:

1
2
export http_proxy="http://127.0.0.1:1087"
export https_proxy="http://127.0.0.1:1087"

然后:source .zshrc

验证:curl www.google.com

# linux

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×