B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-23 Monday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  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¸Þ°¡·Î Á¦ÇÑ µÇ¾î Á¦ÇÑ µÈ 
Å©±âÀÇ µ¥ÀÌŸ ¸¸À» ÀúÀåÇÏ°Ô µÈ´Ù. 

¸ðó¿¡¼­ ÆÛ¿ÔÀ½.
Regist Addr [ 192.168.0.2 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.02 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®