配置终端代理
vi ~/.zshrc
添加
alias proxy='export all_proxy=socks5://127.0.0.1:1080'
alias unproxy='unset all_proxy'
保存source ~/.zshrc
查看ip信息curl ipinfo.io
开启,关闭代理proxy
unproxy
配置git
git config --global http.proxy http://127.0.0.1:1088
git config --global https.proxy https://127.0.0.1:1088
// 取消
git config --global --unset http.proxy
git config --global --unset https.proxy
配置npm
npm config set proxy http://127.0.0.1:1088
npm config set https-proxy http://127.0.0.1:1088
npm config set strict-ssl false
npm config delete proxy
npm config delete https-proxy