码迷,mamicode.com
首页 > 编程语言 > 详细

CentOS 修改线程数限制等(limits.conf)

时间:2014-09-26 19:48:48      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:blog   os   文件   div   on   c   log   ad   r   

修改/etc/security/limits.conf,例如启动程序的用户为webadmin,则添加以下配置:

webadmin        -       nofile  65536
webadmin        -       nproc   65536

其中, nofile是文件句柄数量,线程句柄也属于它。nproc是进程数量。

CentOS 修改线程数限制等(limits.conf)

标签:blog   os   文件   div   on   c   log   ad   r   

原文地址:http://www.cnblogs.com/got-my-way/p/3995021.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!