mac终端代理模式

2018-12-13  本文已影响0人  Lamet03

1、查看IP地址:curl cip.cc

2、打开Finder隐藏文件,找到.bash_profile。或:打开Finder,桌面,con+command+⬆️进入上级目录就有了

//显示隐藏文件:defaults write com.apple.finder AppleShowAllFiles -bool true

//不显示隐藏文件:defaults write com.apple.finder AppleShowAllFiles -bool false

3、alias openv='export http_proxy=http://127.0.0.1:1087 https_proxy=http://127.0.0.1:1087'

      alias offv='unset http_proxy https_proxy'

      将以上两行复制进去。

///127.0.0.1:1087 ,根据你SSR的HTTP代理设置配置

4、然后终端执行source ~/.profile,重启终端

5、终端开启代理:openv,,,,务必要打开SSR

6、终端关闭代理:offv

7、再次看到IP地址。

上一篇 下一篇

猜你喜欢

热点阅读