Chinaunix首页 | 论坛 | 博客
  • 博客访问: 653242
  • 博文数量: 220
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1961
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-04 21:54
文章分类

全部博文(220)

文章存档

2018年(1)

2015年(140)

2014年(79)

我的朋友

分类: 系统运维

2014-12-19 21:19:54

解决crond[xxxx]: pam_limits(crond:session): unknown limit item 'noproc'错误日志

2012年7月29日 | 分类: Linux | 标签: 

查看/var/log/secure这个日志的时候,发现了一些错误日志:


  1. Jul 29 00:00:01 clang crond[14116]: pam_limits(crond:session): unknown limit item 'noproc'
  2. Jul 29 00:00:01 clang crond[14116]: pam_limits(crond:session): unknown limit item 'noproc'
  3. Jul 29 00:00:01 clang crond[14116]: pam_limits(crond:session): unknown limit item 'noproc'
  4. Jul 29 00:01:01 clang crond[14130]: pam_limits(crond:session): unknown limit item 'noproc'
  5. Jul 29 00:01:01 clang crond[14130]: pam_limits(crond:session): unknown limit item 'noproc'
  6. ......



“unknown limit item ‘noproc”意思是未知的限制单位,看样子是关于limit session的,就是限制对话数的最大上限。查了一下资料,这东西归/etc/security/limits.conf这个配置文件管的,打开看了一下,里面有配置说明


  1. #<item> can be one of the following:
  2. # - core - limits the core file size (KB)
  3. # - data - max data size (KB)
  4. # - fsize - maximum filesize (KB)
  5. # - memlock - max locked-in-memory address space (KB)
  6. # - nofile - max number of open files
  7. # - rss - max resident set size (KB)
  8. # - stack - max stack size (KB)
  9. # - cpu - max CPU time (MIN)
  10. # - nproc - max number of processes
  11. # - as - address space limit (KB)
  12. # - maxlogins - max number of logins for this user
  13. # - maxsyslogins - max number of logins on the system
  14. # - priority - the priority to run user process with
  15. # - locks - max number of file locks the user can hold
  16. # - sigpending - max number of pending signals
  17. # - msgqueue - max memory used by POSIX message queues (bytes)
  18. # - nice - max nice priority allowed to raise to values: [-20, 19]
  19. # - rtprio - max realtime priority



看到高亮的部分没,是不是和我们的出错的信息”noproc“这东西很像,应该它就是罪魁祸首了。再往下看这个配置文件


  1. # End of file
  2. * soft noproc 65535
  3. * hard noproc 65535
  4. * soft nofile 65535
  5. * hard nofile 65535



应该把noproc改成nproc,意思就是最大的进程数(对话数)。

-------------------------End-------------------------
按理说原来肯定是没有错的,可能是LNMP一键按装包里有错误,希望作者可以把这个错误修正了,不然广大使用者都不知道错在什么地方。

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