· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
RHEL °ú CentOS ¿¡¼­ Coredump ¸¦ ³²±â±â À§ÇÑ ¹æ¹ý



* ÀÛ¼º: ±èÁ¤±Õ

1. ´ë»ó

  • RHEL 4 / CentOS 4.x
  • RHEL 5 / CentOS 5.x
  • RHEL 6 (¹ÌÈ®ÀÎ)

2. Ä¿³Î ¼³Á¤

  • /etc/sysctl.conf ¿¡
    kernel.suid_dumpable = 1

    kernel.core_uses_pid = 1 (default °ªÀÓ)

    kernel.core_pattern = /tmp/core/core ·Î

  • ¸¦ ÀÔ·ÂÇÑ ÈÄ¿¡, sysctl -p ¸í·ÉÀ¸·Î Ä¿³Î ÆÄ¶ó¹ÌÅÍ ¼öÁ¤À» ¹Ý¿µÇÑ ´ÙÀ½
    mkdir -p /tmp/core
    chmod 777 /tmp/core
    
    ¼³Á¤À» ÇØ ÁØ´Ù.

  • RHEL 5 / CentOS 5 ¿¡¼­ (kernel 2.6.18 ÀÌÈÄ..)
    kernel.suid_dumpable = 1 ÀÌ fs.suid_dumpable = 1 À¸·Î º¯°æµÊ

3. Shell¿¡¼­ÀÇ coredump

  • /etc/bashrc ÀÇ 26¶óÀÎ ÁîÀ½.. ulimit -S -c 0 > /dev/null 2>&1 ¼³Á¤¿¡ ÀÇÇØ core ¸¦ ³²±æ ¼ö ¾øÀ½
  • ~/.bashrc ¿¡ ulimit -c unlimited >/dev/null 2>&1 ¸¦ ³Ö¾î¼­ ÇØ°áÀ» ÇÔ. ¼öÁ¤ ÈÄ, Àç·Î±×ÀÎÀÌ ÇÊ¿äÇÔ.
  • ÇöÀç ¼¼¼Ç¿¡¼­¸¸ Àû¿ëÀ» ÇÏ°í ½Í´Ù¸é ÇöÀç ¼¼¼Ç¿¡¼­ À§ÀÇ ¸í·ÉÀ» ±×³É ½ÇÇàÇÏ¸é µÊ.


4. init script

  • /etc/sysconfig/init ¿¡ '''DAEMON_COREFILE_LIMIT='unlimited À» ¼³Á¤ÇØ ÁÜ
  • /etc/sysconfig/init ¿¡ ¹Ý¿µÇÒ °æ¿ì, init script ·Î ½ÃÀÛÇÏ´Â ¸ðµç µ¥¸óÀÌ ¹Ý¿µÀÌ µÇ¸ç, ¸¸¾à ƯÁ¤ µ¥¸ó¸¸ ÇÊ¿äÇÏ´Ù¸é, °¢ init script ¿¡¼­ . /etc/init.d/functions ¸¦ È£ÃâÇϱâ Àü¿¡ À§ÀÇ ¼³Á¤À» ³Ö¾î ÁÖ¸é µÊ.

ID
Password
Join
There will be big changes for you but you will be happy.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2011-06-01 15:03:52
Processing time 0.0015 sec