在centos7上安装TinyProxy http代理_zhongliangtang的专栏-CSDN博客

其他杂项25字数 417阅读1分23秒阅读模式

在公司网络连接外网,必须走代理的方式,当项目中与第三方服务连接出现超时现象,google后得知项目所用库之前版本有出现过代理无法访问,之后版本已经修复,所以无法判断是库的问题还是公司代理制限

废话少说,下面开始配置tinyproxy之旅

yum install -y epel-release
yum update -y
yum -y install tinyproxy
yum install vim -y1234

vim /etc/tinyproxy/tinyproxy.conf

#Allow xxx.xxx.xxx.xxx
#ConnectPort xxx12

Allow 限制请求主机的IP,全部注释掉意味着允许所有的Ip访问代理 ConnectPort 限制请求允许的端口,全部注释意味着允许所有的端口访问

最后启动tinyport,设置开机启动

systemctl restart  tinyproxy.service
systemctl enable tinyproxy.service

 
  • 本文由 asdfasd 发表于 2025-02-1314:06:37
  • 转载请务必保留本文链接:http://wp.fangfa.me/other-note/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85tinyproxy-http%e4%bb%a3%e7%90%86_zhongliangtang%e7%9a%84%e4%b8%93%e6%a0%8f-csdn%e5%8d%9a%e5%ae%a2-2.html