发布网友 发布时间:2022-04-21 15:51
共1个回答
热心网友 时间:2022-04-12 19:55
安装步骤:
./configure --prefix=/usr/local/squid
make all
sudo make install(要拷贝系统目录需要root权限所sudoroot登录执行我Ubuntu系统所用sudoroot权限行)
检查配置文件:
sudo vi /usr/local/squid/etc/squid.conf
配置项1:
# Squid normally listens to port 3128
http_port 3128
配置项2:
acl localnet src 192.168.0.0/16
http_access allow localnet
配置项3:
# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /usr/local/squid/var/cache/squid 100 16 128
cache_mem 32 MB (条必须配置)
否则遭遇报错: 2013/10/12 16:16:55 kid1| WARNING cache_mem is larger than total disk cache space!
安装系统新建用户squid组查发现属于nobody组:
cat /etc/passwd|grep s