美文网首页
mac终端代理模式

mac终端代理模式

作者: Lamet03 | 来源:发表于2018-12-13 09:31 被阅读0次

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地址。

相关文章

网友评论

      本文标题:mac终端代理模式

      本文链接:https://www.haomeiwen.com/subject/qeutattx.html