H jj 写道:
我是通过修改 /etc/security/limits.conf 文件增加用户打开最大文件数的 下面两行 * soft nofile 8192 * hard nofile 24576 2008/10/13 hhding.gnu <hhding.gnu@gmail.com>:任晓磊 wrote:看看/proc/ pid of squid/limits文件 2008/10/11 wendao <wendaozhe@gmail.com>:sysctl -a | grep file-max的结果为:fs.file-max = 102223。我已经设置ulimit -HSn 65536,并且在/etc/default/squid中设定SQUID_MAXFD=65536,但是,reboot后,squid的文件描述符还是4096,貌似debian中的squid的最大文件描述符就是4096了!不解。。。。。。 2008/10/11 wendao <wendaozhe@gmail.com>2008/10/11 shell909090 <shell909090@gmail.com>wendao 写道:debian中如果把文件描述符增大到4096以上,该怎末做?谢谢你在安装oracle么? sysctl -a | grep file-max 这个是当前系统的文件描述符最大值,可以通过修改/etc/sysctl.conf来变更,记 得重启或者使用sysctl -p启用。 ulimit -a | grep "open files" 这个是当前用户的限制,可以通过ulimit -Hn XXX修改,记得放在系统启动的时候 生效。一般建议放到/etc/profile里面。 sysctl -a | grep file-max的结果为:fs.file-max = 102223。我已经设置ulimit -HSn 65536,并且在/etc/default/squid中设定SQUID_MAXFD=65536,但是,reboot后,squid的文件描述符还是4096,貌似debian中的squid的最大文件描述符就是4096了!不解。。。。。。To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.orgwith a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org1. /proc里面是系统的最大fd限制,这个硬限制 2. ulimit里面是对某个用户或者group的限制,这个无论设置的多大实际上也不能 超过1. 3. 我印象中squid本身也可以设置最大fd限制,好像是在编译还是什么时候,另 外,这个fd受到1,2的限制 -- To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
啊,对啊,还有PAM。