Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://www.arcetri.astro.it/manual/ko/programs/rotatelogs.html
Äàòà èçìåíåíèÿ: Mon Jan 21 19:44:30 2013
Äàòà èíäåêñèðîâàíèÿ: Fri Feb 28 08:24:25 2014
Êîäèðîâêà: ISO8859-5

Ïîèñêîâûå ñëîâà: ï ï ï ï ï ï ï ï ï ï ï
rotatelogs - ÎÖÖÔÔÅ ÇÞÁçÈ? Ì?Ø?×ßÁòÐ?×è ÖÔÐÜ×ÑÇÞ <b style="color:black;background-color:#6666ff">Ï</b>?Àñ×â ÇÞÁç ×ÑÇÞÁçÇ? - Apache HTTP Server
<-
Apache > HTTP Server > Documentation > Version 2.2 > Programs

rotatelogs - ÎÖÖÔÔÅ ÇÞÁçÈ? Ì?Ø?×ßÁòÐ?×è ÖÔÐÜ×ÑÇÞ Ï?Àñ×â ÇÞÁç ×ÑÇÞÁçÇ?

ÀÅÄÙ×á Î?Îþ:  en  |  ko  |  tr 

ÐÜ É?Ì-ÄÒ ÓæÍÕÖ× É?Ï?ÐÜ ÎÖÄåÄßÄé. ÓæÁéÏÅ Ê?ÀöÅØ ÃËÏûÐÊ ÏÅÎþ É?Ì-È? Ò?Àý×ßÌÌÏô.

rotatelogsÄÒ ÎÖÖÔÔÅÐ× ÖÔÐÜ×Ñ ÇÞÁçÖÔÐß ÁòÄÙÐË Ð?×á À?Äì×á ×ÑÇÞÁçÇ?ÐÜÄé. ÏÉÈ? ÅùÎþ:

CustomLog "|bin/rotatelogs /var/logs/logfile 86400" common

ÁçÇ?Èù /var/logs/logfile.nnnn ÖÔÐßÐË ÈÈÅ÷Äé. nnnnÐÊ ÇÞÁçÈ? ÍÓÐë×á ÍÓÍÊÕëÍÓÀ?ÐÜÄé (ÐÜ ÍÓÀ?ÐÊ ×çË? Ì?Ø?ÁòÀ?Ð× ÉøÌ?ÐÜÄé. ÁçÇÅÌ- cron ÍÊÕ?ÈÃÖ?ÇÞ ÓÃÈ?×ßÁò ÍÁÄé). Ì?Ø?ÁòÀ? (Ï?ÁòÌ-ÄÒ 24 ÍÓÀ?) ÈÆÄé Ë?ÇÞÏþ ÇÞÁçÈ? ÍÓÐë×áÄé.

CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common

ÐÜ ÌÃÑ?ÐÊ ÇÞÁçÖÔÐß Õ?ÁòÀÅ 5 ÈîÀÅÉéÐÜÖ?ÀÅ ÅÙÆ?ÈÆÄé Ì?Ø?×áÄé.

ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_%M_%S 5M"

ÐÜ ÌÃÑ?ÐÊ ÏÐÇ?ÇÞÁç ÖÔÐß Õ?ÁòÀÅ 5 ÈîÀÅÉéÐÜÖ?ÀÅ ÅÙÆ?ÈÆÄé errorlog.YYYY-mm-dd-HH_MM_SSÏÝ ÀÀÐÊ ÖÔÐßÐË ÈÈÅùÎþÌ- ÏÐÇ?ÇÞÁç ÖÔÐßÐË Ì?Ø?×áÄé.

top

ÀÃÏô

rotatelogs [ -l ] logfile [ rotationtime [ offset ]] | [ filesizeM ]

top

ÏÙÌ×

-l
Ì?Ø?ÑæÁòÇÞ GMT ÄûÍÕ Ñ?Ï?ÍÓÀ?ÐË Ë÷Ïû×áÄé. (BSTÃ? DSTÏÝ ÀÀÐÜ) GMT ÍÓÀ?Ò?ÀÅ Ê?×ßÄÒ Ø?ÀöÏÅÌ- -lÐË Ë÷Ïû×ßÈù ÏÉÁòÔÅ ÎÚÐÊ ÀñÀ?ÀÅ ÉïË×â Ì? ÐæÄé!
logfile
ÇÞÁçÖÔÐßÐ× ÀöÇÞÏÝ ÐÜÈ?. logfileÏÅ '%' É?ÐêÀÅ ÐæÄéÈù strftime(3)Ð× ×?ÍÔÉ?ÐêÏ-À? ÀÀÐÜ ÓÃÈ?×áÄé. '%' É?ÐêÀÅ Î?ÄéÈù ÅêÏÅ ÓÚÄìÐ? ÍÓÀ? .nnnnnnnnnnÐË ÐêÅÏÐÈÇÞ ÊéÐÞÄé. ÅÞ ×?ÍÔ È?ÅÞ ×?Ð÷ ÁòÀ?ÊÞÕÝ ÍÓÐëÍÓÀ?ÐË ÀøËú×áÄé.
rotationtime
ÇÞÁçÖÔÐßÐË Ì?Ø?×â ÓÚÄìÐ? ÍÓÀ?.
offset
UTCÏÅÌ- ÊàÄìÐ? ÍÓÀ?Ò?ÐÜ. ËÇ?×ßÈù 0ÐÈÇÞ ÀÅÑ?×ßÏ? UTCÈ? Ë÷Ïû×áÄé. ÏÉÈ? ÅùÎþ, UTC -5 ÍÓÀ?ÄûÐ× Ñ?Ï?ÍÓÀ?ÐË Ë÷Ïû×áÄéÈù ÎÖÁäÈåÖ?ÇÞ -300ÐË Ñ?Ñ?×áÄé.
filesizeM
ÍÓÀ?ÐÜ ÎÖÄá Õ?ÁòÈ? Ñ?Ñ?×âÆ? ÈîÀÅÉéÐÜÖ?ÄìÐ? ÓæÄû ÖÔÐßÕ?Áò ÅêÏÅ MÐË ÊéÐÞÄé. rotationtimeÀ? offset ÄûÍÕ ÐÜ ÖÔÆ?ÉÜÕÝÈ? Ë÷Ïû×áÄé.
top

Ö?ÖÓÀÅÄÙÌÊ

ÄéÐÍ ÇÞÁçÖÔÐß ×?ÍÔÉ?ÐêÏ- ×?×?ÐÊ È?Å÷ strftime(3) ÁÈ×?ÐÜ Ñ?Ï?×èÎï ×áÄé. Æ?ÐÜÊúÇ?È? Ö?Ð?Ð× Ø?ÐõÐÊ strftime(3) manpageÈ? Ò?Àý×ßÆ?.

%A(Ñ?Ï?Ø-ÅØ) ÏßÐ?×á ÏôÐß ÐÜÈ?
%a(Ñ?Ï?Ø-ÅØ) 3-É?Ðê ÏôÐß ÐÜÈ?
%B(Ñ?Ï?Ø-ÅØ) ÏßÐ?×á Äî ÐÜÈ?
%b(Ñ?Ï?Ø-ÅØ) 3-É?Ðê Äî ÐÜÈ?
%c(Ñ?Ï?Ø-ÅØ) Ã?Ò?ÏÝ ÍÓÀ?
%d2-ÐêÈ? Ðß
%H2-ÐêÈ? ÍÓÀ? (24 ÍÓÀ? ÍÓÀø)
%I2-ÐêÈ? ÍÓÀ? (12 ÍÓÀ? ÍÓÀø)
%j3-ÐêÈ? Ã?Ò?Ì?
%M2-ÐêÈ? Êà
%m2-ÐêÈ? Äî
%p(Ñ?Ï?Ø-ÅØ) 12 ÍÓÀ? ÍÓÀøÐ× am/pm
%S2-ÐêÈ? ÓÚ
%U2-ÐêÈ? ÑæÐßÌ? (ÑæÐ× ÓÉÉ?Ð÷ Ã?ÐÊ ÐßÏôÐß)
%W2-ÐêÈ? ÑæÐßÌ? (ÑæÐ× ÓÉÉ?Ð÷ Ã?ÐÊ Ï?ÏôÐß)
%w1-ÐêÈ? ÏôÐßÌ? (ÑæÐ× ÓÉÉ?ÒÀ Ã?ÐÊ ÐßÏôÐß)
%X(Ñ?Ï?Ø-ÅØ) ÍÓÀ?
%x(Ñ?Ï?Ø-ÅØ) Ã?Ò?
%Y4-ÐêÈ? Ï?ÅÅ
%y2-ÐêÈ? Ï?ÅÅ
%ZÍÓÀ?Äû ÐÜÈ?
%%É?ÐêÁçÄûÇÞ `%'

ÀÅÄÙ×á Î?Îþ:  en  |  ko  |  tr 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.