如何在linux上用squid搭建代理服务器

展开全部  安装步骤:./configure --prefix=/usr/local/squidmake allsudo make install(要拷贝系统目录需要root权限所sudoroot登录执行我Ubuntu系统所用sudoroot权限行)  检查配置文件:sudo vi /usr/local/squid/etc/squid.conf配置项1:# Squid normally listens to port 3128http_port 3128  配置项2:acl localnet src 192.168.0.0/16http_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 128cache_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