1  安装

yum install tinyproxy

 

2 查找配置文件地址

whereis tinyproxy.conf

 

3 编辑配置文件

vim tinyproxy.conf

把 allow 127.0.0.1 注释掉  意味着开启所有人可访问

因为无用户和密码 建议 设置allow 自己的IP

解释:

  • port:代理服务器端口,本例是8888
  • Allow IP,这个是用来做IP服务限制的,当你不希望做ip限制,那就注释掉,如果希望做IP限制,只需要把希望使用该服务的IP地址增加即可。本例中不做限制。

4 启动

service tinyproxy start

 

5 关闭

service tinyproxy stop

 

6. 关闭防火墙或开放端口访问

方式1:关闭防火墙

/etc/init.d/iptables stop

方式2:开放端口访问

iptables -A INPUT -p tcp --dport 8888 -j ACCEPT

重启防火墙

/etc/init.d/iptables restart

注意:若采用的阿里云、腾讯云、AWS等云服务器,记得要在安全策略里开放端口号

 

7 看结果

centos7使用tinyproxy搭建简单http(s)服务器,无用户密码验证

相关文章:

  • 2021-07-24
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-09-22
  • 2021-08-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-07-11
  • 2022-12-23
  • 2021-05-29
相关资源
相似解决方案