squid代理

服务端

环境

操作系统:CentOS Linux release 7.8.2003 (Core)
架构:x86

安装squid

yum install squid -y

配置

vi /etc/squid/squid.conf

http_access deny all修改为http_access allow all

运行squid

systemctl restart squid

客户端

http代理(/etc/profile)

export http_proxy=http://2.2.2.147:3128
export https_proxy=http://2.2.2.147:3128

yum代理(/etc/yum.conf)
proxy=http://2.2.2.147:3128

posted @ 2023-01-05 17:59  MegaloBox  阅读(27)  评论(0编辑  收藏  举报