Squid 是一款不错的缓存服务器,在大多数服务器上,大家都会用编译的方法来安装Squid。我生产上的Squid全部用rpm 的,这种rpm 的Squid是经过Redhat 官方工程师专对RHEL平台重新编译生成的二进制包。直接安装就可以了,不用编译那么麻烦。
下载URL:
还比较全.包括了
The latest upstream packages for Red Hat Enterprise Linux 4:
squid-2.6.STABLE22-1.el4
squid-2.7.STABLE6-1.el4
The latest upstream packages for Red Hat Enterprise Linux 5:
squid-2.6.STABLE22-1.el5
squid-2.7.STABLE6-1.el5
squid-3.0.STABLE13-1.el5
The latest relase notes:
Release notes 2.6
Release notes 2.7
Release notes 3.0
用rpm版安装的SQUID 最大文件数一直为1024 ,我调整了/etc/security/limits.conf ,系统启动加上ulimit -SHn ,在SQUID 脚本里加上 ulimit -SHn 同样不管用。其实在/etc/squid/squid.conf 文件中加入一行
max_filedesc 65535
再重新启动squid就生效了。不过不是65535
File descriptor usage for squid:
Maximum number of file descriptors: 16384
Largest file desc currently in use: 590
Number of file desc currently in use: 373
Files queued for open: 0
Available number of file descriptors: 16011
Reserved number of file descriptors: 100
Store Disk files open: 1
IO loop method: epoll
Internal Data Structures: