安装:
debian系:apt-get install tinyproxy redhat系:yum install tinyproxy
配置:
vim /etc/tinyproxy/tinyproxy.conf
(1)找到Allow 127.0.0.1行,前面加上#号将其注释掉
(2)Port 8888:默认开放的端口为8888(可自行更改)
启动服务:
systemctl restart tinyproxy.service
使用proxy:
export http_proxy=http://xxxxxx:8888 export https_proxy=http://xxxxxx:8888
禁用proxy:
unset http_proxy https_proxy