mac下使用命令行代理并启动app解决arc浏览器注册时的unknown server error

最近想体验一款新的浏览器arc,发现需要等待排队,使用学校邮箱申请成功,但是登录时时候注册邮箱总显示unknown server error,后来发现mac的ssr全局代理不会代理命令行和一些app。感到很疑惑。所以干脆命令行全局代理在命令行里启动app。

1
2
3
hey, here’s an invite to Arc, the browser I was telling you about!

https://arc.net/gift/ffc23d7f

想体验arc浏览器的可以自取邀请码

命令行全局代理

首先找到自己的http代理端口,详见如下。

然后在~/.bash_profile 增加脚本指令

1
2
3
4
5
6
7
8
9
10
function proxy_on(){
export http_proxy=http://127.0.0.1:1087
export https_proxy=http://127.0.0.1:1087
echo -e "已开启代理"
}
function proxy_off(){
unset http_proxy
unset https_proxy
echo -e "已关闭代理"
}

在使用该脚本 source ~/.bash_profile 然后打开代理。

最后使用$ open /Applications/app名字.app打开arc浏览器。发现可以代理成功

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2015-2023 galaxy
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信