Linux终端
使用apt(yum)安装privoxy
apt install privoxy (yum install privoxy)
打开文件/etc/privoxy/config,并替换为以下内容
forward-socks5 / 127.0.0.1:1080 .
在终端行中运行以下命令重启服务privoxy
service privoxy restart
在终端中运行以下命令设置代理
export http_proxy=http://127.0.0.1:8118/
export https_proxy=http://127.0.0.1:8118/
在终端中运行以下命令来检测代理是否正常运行
curl https://google.com/