Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2341197
  • 博文数量: 2110
  • 博客积分: 18861
  • 博客等级: 上将
  • 技术积分: 24420
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-05 18:23
文章分类

全部博文(2110)

文章存档

2011年(139)

2010年(1971)

我的朋友

分类: LINUX

2010-01-21 13:25:19

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:

阅读(402) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~