squid基础配置

1
2
3
4
5
6
7
8
9
10
vim /etc/squid/squid.conf
  
http_port 192.168.1.12:3128 (可写多个)
cache_mem 64MB         
maximum_object_size 4096KB            
reply_body_max_size  1024000 allow all 
access_log /var/log/squid/access.log  
visible_hostname  proxy.test.xom
cache_mgr  webmaster@test.com       
http_access allow all

一切配置以后:
           

 squid –z 初始化缓存

squid –k parse 检查语法

service squid start 启动squid

chkconfig squid on 加入开机启动

netstat –nltp   查看3128端口是否打开

原文地址:https://www.cnblogs.com/solohac/p/4154184.html