前提
你的电脑,可以通过VPN上网
步骤
1.打开ByWave客户端并点击运行,找到代理端口
2.配置 Terminal(终端)使用 ByWave 作为网络代理
在 terminal 分别输入如下 2 个命令,10080是上面找到的代理端口:
export http_proxy=http://localhost:10080
export https_proxy=http://localhost:10080
测试是否成功
curl google.com
如果显示一下内容,表示配置成功
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
解除终端代理
unset http_proxy
unset https_proxy