它是一个代理服务器,用来实现http或https代理,windows系统一直在用ccproxy, 非windows系统,怎么开放个http代理呢?那就是TinyProxy。windows
直接执行命令便可服务器
sudo apt-get update sudo apt-get install tinyproxy
配置文件在 /etc/tinyproxy.conf
修改以下地方便可:curl
Port 8888 #预设是8888 Port,你能够更改
Allow 127.0.0.1 #将127.0.0.1改为你本身的IP
#例如你的IP 是1.2.3.4,你改为Allow 1.2.3.4,那只有你才能够连上这个Proxy
#若你想任何IP均可以脸到Proxy在Allow前面打#注释测试
直接启动 TinyProxy 的 service 便可。ui
service tinyproxy start
service tinyproxy restart
service tinyproxy stop
在另外一台客户机上输入url
curl -x <IP>:<PORT> www.baidu.com
其中IP和PORT是代理服务器的IP和代理端口,若是出现百度的源代码,则证实代理配置成功。spa
注意要配置allow才能够正常访问,就是你在那台服务器上作测就配那台服务器的 ip代理