centos下搭建squid代理过程记录
1. 直接yum安装:
yum install -y squid
2. 编辑配置文件
打开配置文件squid.conf
vi /etc/squid/squid.conf
修改配置如下:
http_port 13128
# http_access deny all # 找到该行并注释掉
http_access allow all # 修改为allow全部ip
3. 启动服务
systemctl start squid
systemctl status squid
看到服务状态为running即启动成功
4. 防火墙放开端口
在云服务器面板进行配置,打开13128端口
浙公网安备 33010602011771号