然后我们安装privoxy
| 1 | $ sudo apt-get install privoxy |
安装完成之后,我们进入/etc/orivoxy更改config,把这句注释掉:
| 1 | # listen-address localhost:8118 |
然后在最后一行加上:
| 1 2 | forward-socks5 / 127.0.0.1:1080 . listen-address 127.0.0.1:8118 |
记住第一行后面有一个.,我配置的时候没有记得加.,然后一直不行吓死我了。
然后我们配置全局的http proxy, sudo vim /etc/environment,加入下面的代码
| 1 2 | export http_proxy=http://127.0.0.1:8118 export https_proxy=http://127.0.0.1:8118 |
然后我们重启计算机,重新连上代理,使用curl www.google.com试试