Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1362319
  • 博文数量: 343
  • 博客积分: 13098
  • 博客等级: 上将
  • 技术积分: 2862
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-06 00:35
文章存档

2012年(131)

2011年(31)

2010年(53)

2009年(23)

2008年(62)

2007年(2)

2006年(36)

2005年(5)

分类:

2012-12-07 10:27:25

1. Edit /etc/security/limits.conf, and uncomment the line as follows:


  1. 42 #
  2. 43 #
  3. 44
  4. 45 * soft core unlimited

2. Edit /etc/sysctl.conf, and add lines as follows:

  1. 27 kernel.core_uses_pid = 1
  2. 28 kernel.core_pattern = /home/coredumps/core-%e-%s-%u-%g-%p-%t
  3. 29 fs.suid_dumpable = 2

3. Edit  /etc/sysconfig/init, and add a line as follows:

  1. 26 DAEMON_COREFILE_LIMIT='unlimited'

4. Edit /etc/systemd/system.conf, and uncomment the following lines:

  1. 10 [Manager]
  2. 11 #LogLevel=info
  3. 12 #LogTarget=journal-or-kmsg
  4. 13 #LogColor=yes
  5. 14 #LogLocation=no
  6. 15 DumpCore=yes
  7. ...
  8. 34 #DefaultLimitSTACK=
  9. 35 DefaultLimitCORE=infinity
  10. 36 #DefaultLimitRSS=
  11. 37 #DefaultLimitNOFILE=
  12. 38 #DefaultLimitAS=
  13. ...



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