ãã®ãã¼ã¸ã¯ http://tmcosmos.org/linux/fedora/fc3.html. ã¸ç§»åãã¾ããã5ç§å¾ã«ã¸ã£ã³ããã¾ãã
ãã®ãã¼ã¸ã¯ http://tmcosmos.org/linux/fedora/fc3.html. ã¸ç§»åãã¾ããã5ç§å¾ã«ã¸ã£ã³ããã¾ãã
ããã°ãã¼ãã¼ããã¼ã«ãlogrotateãã使ãããªããããã§ç´¹ä»ãã¦ããããã«ï¼è¥å¤§åããã¡ãªãã°ãã¡ã¤ã«ã¯ï¼å®æçã«å±¥æ´ãã¡ã¤ã«ãä½æãã¦æ±ãããã容éã«ä¿ã¤ã®ãããã ãã®logroteã®å®è¡çµæã¯ï¼cronå®è¡ã®çµæãrootå®ã«éä¿¡ããªãããã«ãã¦ããå ´åï¼ã©ã®ãããªçµæã«ãªã£ã¦ããããè¦ãã¥ãããããã§ï¼/var/lib/logrotate.statusãã¡ã¤ã«ãåç §ãã¦ã¿ãã°ï¼è¨å®ããã¦ããããããã®ãã¡ã¤ã«ããã¤å転ããããã²ã¨ç®ã§åããã # cat /var/lib/logrotate.status logrotate state -- version 2 "/var/log/messages" 2002-5-1 "/var/log/secure" 2002-5-1 "/var/log/maillog" 2002-5-1 "/var/log/spooler" 2002
ãã°ãã¡ã¤ã«ã®æ±ãã¯ã·ã¹ãã 管çã®ä¸ã§ãéè¦ãªç©ã®1ã¤ã ãããã°ãã¡ã¤ã«ãã¨ã²ã¨å£ã«ãã£ã¦ãå¹¾ã¤ãã®ç¨®é¡ããããã·ã¹ãã ãã°ï¼messagesï¼ãApacheã®ã¢ã¯ã»ã¹ãã°ï¼access_logï¼ãCronãftpãSambaãªã©ãæãããããæ¥ããããããããã®ä½¿ç¨é »åº¦ãç£è¦ãã¦ããã°ãã¡ã¤ã«å®¹éãè¥å¤§åãéããªããã管çããªããã°ãªããªãã ãã®ãããªç¶æ³ãèæ ®ãããLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ã®ã»ã¨ãã©ã«ã¯ãlogrotateãã¨å¼ã°ãããã°ãèªåçã«åãï¼ãã¼ãã¼ãã詳細å¾è¿°ï¼ãã¼ã«ãRPMããã±ã¼ã¸ã§ç¨æããã¦ããããã®ãã¼ã«ã使ãããªããã¨ãã§ããã°ãApacheã®å ´åãApacheã®ãã°ãã¡ã¤ã«ãå®æçã«åå²ããããï½rotatelogsç·¨ï½ãããApacheã®ãã°ãã¡ã¤ã«ã®è¥å¤§åãåé¿ãããããã§ç´¹ä»ãããããªå¯¾å¦ãä¸è¦ã«ãªãã logrotateãRPMã§ã¤ã³ã¹ãã¼ã«
ãã°ãã¡ã¤ã«ãæ¾ç½®ããã¨ã©ãã©ããã¡ã¤ã«ã¯è¥å¤§åãããã¤ãã¯ãã¼ããã£ã¹ã¯ã®ç©ºã容éã使ããã£ã¦ãã¾ãã¾ãããããé²ãããã«Linuxã§ã¯logrotateã¨å¼ã°ãããã°ãã¼ãã¼ã·ã§ã³æ©æ§ãå©ç¨ãã¦ãã¾ãã ãã£ã¹ããªãã¥ã¼ã¿ã§é å¸ããã¦ãããã¤ããªããã±ã¼ã¸ããå°å ¥ããã¢ããªã±ã¼ã·ã§ã³ã¯ãæ¢ã«ãã®logrotateã®è¨å®ããªããã¦ããå ´åãã»ã¨ãã©ã§ããããã¼ãã¼ã·ã§ã³ééãå¤æ´ããå ´åããèªåã§ã½ã¼ã¹ãªã©ããå°å ¥ããã¢ããªã±ã¼ã·ã§ã³ãå©ç¨ããå ´åã¯è¨å®ãå¿ è¦ã§ãã
å種ãã°ãã¡ã¤ã«ã¯æ¾ç½®ãã¦ããã¨æéã¨ã¨ãã«è¥å¤§åãã¾ãããã®åé¡ã解決ããã®ããã°ãã¼ãã¼ã·ã§ã³ã§ãã ãã°ãã¼ãã¼ã·ã§ã³ã¯ãä¾ãã°logã¨ãããã°ãã¡ã¤ã«ã®ååãlog1 log2 log3â¦ã¨ããããã«å®æçã«åãã¦ããã¯ã¢ãããã¾ãã ãã¼ãã¼ã·ã§ã³æ°ã4ã«ããã®ã§ããã°å®æçã«log4ã®ãã°ã¯log3ã«ä¸æ¸ããããlog3ã®ãã°ã¯log2ã«ä¸æ¸ããããlog2ã®ãã°ã¯log1ã«ä¸æ¸ããã log1ã®ãã°ã¯logã«ä¸æ¸ãããã¾ããããã¦æ°ããªç©ºã®ãã°ãã¡ã¤ã«logãçæããã¾ããä¸é±éééã§ãã¼ãã¼ã·ã§ã³ããã®ã§ããã° ãã°ãã¡ã¤ã«ã¯1é±éãã°ãã¼ã¿ãè¨é²ããããã¨ã«ç©ºã«ãªãã4é±éåã®ãã°ãã¡ã¤ã«ãããã¯ã¢ããããã¦ãããã¨ã«ãªãã¾ãã logrotateã¯cronã«ãã£ã¦å®æçã«å®è¡ããã¦ãã¾ãã #ls -l /etc/cron.daily/logrotate -rwx
ååããã°ãè¨é²ããæ¹æ³ãç´¹ä»ããããè¨é²ããã ãã§ã¯å½¹ã«ç«ããªããä»åã¯ããã°ãã¡ã¤ã«ã®ç®¡çæ¹æ³ã¨ããã°ã®åææ段ã¨ãã¦ãAnalogãã®å°å ¥ã»éç¨æ¹æ³ãç´¹ä»ããã ååã¯ãApacheãè¨é²ããã¢ã¯ã»ã¹ãã°ãã¨ã©ã¼ãã°ã®è¨å®ã«ã¤ãã¦ç´¹ä»ãããããã¾ã§ããªãã¨æããããã°ã¨ãããã®ã¯ãã è¨é²ããã ãã§ã¯ä½ã®æå³ããªããããã©ãããããã°ã®ç®¡çãæ ãã¨ãã£ã¹ã¯å®¹éãå§è¿«ããã ãã®ç¡ç¨ã®é·ç©ã«ãªããããªãï¼ãããããã£ã¹ã¯ã®è¥ããããªã©ã¨ããï¼ã ãããããã¨ãèµ·ãããªããããå®æçã«ç®¡çã»éç¨ããã®ã管çè ã®åãã§ãããããã§ãä»åã¯ãã°ã®å®æçãªãã¼ãã¼ã·ã§ã³ã¨ãã®å 容åæã«ã¤ãã¦ç´¹ä»ããã ãã°ãã¡ã¤ã«ã®ãã¼ãã¼ã·ã§ã³ å è¿°ããããã«ããã°ãã¡ã¤ã«ãæ¾ã£ã¦ããã¨ãã£ã¹ã¯ãå§è¿«ãããã¨ã«ãªããããªããããã ãã§ãªãããã°ãã¡ã¤ã«ã®ãµã¤ãºã大ãããªãã°ããã°ã®è§£æã«ãæªå½±é¿ãåã¼ãããµã¤ãº
å¤æ´å±¥æ´ 2003.12.28 å 容ãããã¤ãã®ãã¡ã¤ã«ã«åãã 2003.02.11 æ°è¦ä½æ ï¼FDLinux CD-ROMä¸ã®é ãå±æ§ãã¡ã¤ã« CD/DVDã³ã³ããã©ã¤ã Dos ã¨ãã¥ã¬ã¼ã¿ USB-FD Flashã«ã¼ã Fedora2ã§ã«ã¼ããèªèãããªã USB-Memory NTP(NetworkTimeProtocol) æ¥æ¬èªã³ã¼ãå¤æ Linux Update (yum, apt) ã¢ã³ãã¦ã£ã«ã¹(AntiVirus)ã½ãã SELinux ãã¹ãåã®å¤æ´ ï¼FDLinux èµ·åä¸ã« Kernel panic: VFS: Unable to mount root fs on 01:00 ã®ãããªã¡ãã»ã¼ã¸ ã§åæ¢ãã¦ãã¾ãå ´åãRAMDiskã®ãã¦ã³ãã«å¤±æãã¦ãããã¨ãå¤ããèµ·åãã©ã¡ã¼ã¿ã«æ示çã«mem=64M ã®ããã«ã¡ã¢ãªãæå®ãã¦ã¿ããã¨ã CD-ROMä¸ã®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}