ubuntu 设置-网络 如下图所示
打开tutu选择左上角首选项
之后选择左下角选择系统代理
然后在终端中
sudo gedit ~/.zshrc
export http_proxy=http://127.0.0.1:8889
export https_proxy=http://127.0.0.1:8889
source ~/.zshrc
验证是否成功
curl -I www.google.com ,如果显示 HTTP/1.1 200 OK 则说明代理配置成功.
ubuntu 设置-网络 如下图所示
打开tutu选择左上角首选项
之后选择左下角选择系统代理
然后在终端中
sudo gedit ~/.zshrc
export http_proxy=http://127.0.0.1:8889
export https_proxy=http://127.0.0.1:8889
source ~/.zshrc
验证是否成功
curl -I www.google.com ,如果显示 HTTP/1.1 200 OK 则说明代理配置成功.