|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 68 article |
2002-01-22 11:55:23 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
°èÁ¤»ç¿ëÀÚµéÀÌ »ç¿ëÇÑ ¸í·É¾î¸¦ ¾Ë¾Æ³»´Â¹ý |
|
|
°èÁ¤»ç¿ëÀÚµéÀÌ »ç¿ëÇÑ ¸í·É¾î¸¦ ¾Ë¾Æ³»´Â ¹ý
ÀÌ°ÍÀ» Çϱâ À§Çؼ± psacct¶ó´Â ÆÐÅ°Áö°¡ ÀÖ¾î¾ß ÇÑ´Ù. ¼³Ä¡ µÇÁö ¾ÊÀº
°æ¿ì rpmÀ̳ª ¼Ò½ºµîÀ» Á÷Á¢ ¼³Ä¡ ÇØ ÁÖ¸é µÈ´Ù.(´ëºÎºÐ ¹èÆ÷º»¿¡
±âº»ÀûÀ¸·Î ¼³Ä¡ µÇ¾î ÀÖ´Ù)
1.´õ¹Ì ·Î±× ÆÄÀÏ »ý¼º(µ¥ÀÌŸ¸¦ ±â·ÏÇÒ ÈÀÏ »ý¼º
$ touch /var/log/pacct
2.üũ¸¦ ½ÃÀÛÇÏ°ÔÇÏ´Â ¸í·É¾î ½ÇÇà
% /sbin/accton /var/log/pacct
Âü°í) ºÎÆýà Ç×»ó üũ¸¦ ÇÏ°ÔÇÏ·Á¸é
·¹µåÇÞ°æ¿ì) /etc/rc.d/rc.local ÈÀÏ¿¡ À§ÀÇ
¸í·É¾î¸¦ Ãß°¡ ÇÑ´Ù.
3.»ç¿ëÀÚ°¡ ¼öÇàÇÑ ¸í·É¾î üũ
% lastcomm »ç¿ëÀÚ°èÁ¤
(ÀÌ·¸°Ô ÇÏ¸é »ç¿ëÇÑ ¸í·É¾î°¡ ¸ðµÎ ³ª¿À°Ô µÈ´Ù)
À§¿¡ ¸í·É¸¸ ÇØµÎ½Ã¸é ¸ðµç ¸í·É¾î°¡ °è¼Ó ÀúÀåµÇ¾î
³ªÁß¿¡ ·Î±× ¿ë·®ÀÌ ¾öû Å©Áö¹Ç·Î ¿ë·® Á¦ÇÑ ¹ý
% vi /etc/logrotate.conf ¿¡ ´ÙÀ½À» Ãß°¡ÇÑ´Ù.
/var/log/pacct {
size=5M
rotate 4
postrotate
/sbin/accton
/sbin/accton /var/log/pacct
endscript }
À§¿Í °°ÀÌ Ãß°¡ÇØ ÁÖ½Ã¸é ´õ¹Ì ÈÀÏÀÇ Å©±â´Â 5¸Þ°¡·Î Á¦ÇÑ µÇ¾î Á¦ÇÑ µÈ
Å©±âÀÇ µ¥ÀÌŸ ¸¸À» ÀúÀåÇÏ°Ô µÈ´Ù.
¸ðó¿¡¼ ÆÛ¿ÔÀ½.
|
|
Page Loading [ 0.03 Sec ]
SQL Time [ 0 Sec ]
|
|
|