当前位置: 首页 > news >正文

配置与管理代理服务器

安装squid

Squid软件包在标准yum存储库中可用,因此,我们正在使用yum命令安装Squid代理。

都在server2上做

[root@server ~]# dnf install -y squid            //安装

[root@server ~]#systemctl enable --now squid.service

[root@server ~]#systemctl status  squid.service

[root@server ~]#netstat -antpl| grep squid

[root@server ~]#ss -antpl| grep squid 

[root@server yum.repos.d]# firewall-cmd --permanent --add-service=squid

[root@server yum.repos.d]# firewall-cmd --reload

[root@server yum.repos.d]# vim  /etc/squid/squid.conf

在server02上放行squid服务,并放行80端口测试。重启防火墙

[root@server yum.repos.d]# firewall-cmd  --permanent  --add-service=squid //放行squid

[root@server yum.repos.d]# firewall-cmd  --permanent --add-port=80/tcp //放行80端口

[root@server yum.repos.d]# firewall-cmd  --reload         //重启服务

[root@server yum.repos.d]# netstat -an|grep   :3128      //是否监听3128端口

[root@server yum.repos.d]# systemctl  start  squid        //开启squid服务


[root@server yum.repos.d]# systemctl  enable  squid        //开机自启

在CentOS 8防火墙中允许Squid代理服务

[root@server ~]# vi /etc/squid/squid.conf

输入dns_v4_first on

[root@server ~]#  systemctl restart squid

http://www.dtcms.com/a/120935.html

相关文章:

  • openEuler-22.03-LTS-SP3 编译安装 Greenplum-db 6.20.0
  • 【检测手机有无网络】
  • 自动化测试——selenium
  • 【python】针对Selenium中弹框信息无法定位的问题,以下是综合解决方案及注意事项:
  • Trae + LangGPT 生成结构化 Prompt
  • C++ 时间库和线程库学习笔记(Chrono 与 Thread)
  • C++ 中的双指针技巧:高效解决数组和链表问题
  • 华为openEuler欧拉系统
  • unity运行时进行录制并保存(可进行二次加载包含场景中生成动态物体)
  • AMS 启动流程管理进程与Binder的关联
  • LeetCode.234. 回文链表
  • 峰飞航空与合肥开启全面合作,打造先进空中立体多维交通运输生态
  • 国家出手肥胖问题,AI减肥起风了
  • Element Plus 图标使用方式整理
  • 【力扣hot100题】(076)买卖股票的最佳时机
  • 基于华为云kubernetes的应用多活的示例
  • 基于PyQt5的企业级生日提醒系统设计与实现
  • AI智能体需求研究报告:小红书、知乎、抖音等平台用户需求深度分析
  • 【QT】QT中的文件IO
  • 【SpringBoot】98、SpringBoot中整合springdoc-openapi-ui接口文档
  • 网络出故障时,四大表(MAC表、ARP表、路由表、转发表)怎么查?看看这套排查顺序
  • 操作系统常用命令
  • 点击抽奖功能总结
  • 更改CMD背景图片
  • [特殊字符] 手机连接车机热点并使用 `iperf3` 测试网络性能
  • 让你的MCP符合openai协议
  • 时间序列频率转换
  • 【Python】读取xlsb或xlsx的单一或连续单元格工具类
  • 从0到1构建工具站 - day6 (在线编程工具-docker)
  • C++初阶-C++入门基础