常用工具软件(推荐)

TinyProxy [简单易用的代理工具]

  1. 安装 TinyProxy

    yum -y install tinyproxy

  2. 配置 TinyProxy

    vim /etc/tinyproxy/tinyproxy.conf

修改 Port 端口,默认为 8888

Port 8888

注释掉 Allow,表示允许所有人访问代理

Allow 127.0.0.1

隐藏掉Via请求头部,去掉下面的注释

DisableViaHeader Yes

更多配置项,下面是列举一些配置文件默认的,不需要配置:

PidFile “/var/run/tinyproxy/tinyproxy.pid”
LogFile “/var/log/tinyproxy/tinyproxy.log”
LogLevel Info
MaxClients 100
MinSpareServers 5
MaxSpareServers 20
StartServers 10

3 启动 TinyProxy

systemctl start tinyproxy.service

更多命令如下:

systemctl restart tinyproxy.service
systemctl stop tinyproxy.service
systemctl status tinyproxy.service
systemctl enable tinyproxy.service

在centos7中如何来打开端口和关闭防火墙呢?

systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动

开启端口

firewall-cmd –zone=public –add-port=80/tcp –permanent

命令含义:
–zone #作用域
–add-port=80/tcp #添加端口,格式为:端口/通讯协议
–permanent #永久生效,没有此参数重启后失效

猜你喜欢

转载自blog.csdn.net/blueheart20/article/details/80081775