▁▂▁ 豬窩 bbs.pighouse.net 來源:bbs.pighouse.net
◢ 王 ◣ ◣_____________________________◢
▊ ● ● ▎ ◤ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄◥
。。 豬言豬語:陰暗的天氣裡, 是展現好心情的最佳時機
◣ ˇ ◤ ◣_____________________________◢
我的 apache 是 1.3.1 的版本
httpd.conf 的設定是
ErrorLog /var/log/httpd-error.log
CustomLog /var/log/httpd-access.log combined
然後我在 /etc/newsyslog.conf 裡這樣寫
/var/log/httpd-access.log 644 7 * 1 -
/var/log/httpd-error.log 644 5 100 * Z
因為要每小時分析 access log, 所以讓他每小時 newsyslog 一次
但是我發現一個很奇怪的問題
就是當 newsyslog 後, 產生出 /var/log/httpd-access.log.0 了沒錯
但是後來的 http access 仍然寫到 /var/log/httpd-access.log.0 去
然後再一小時
/var/log/httpd-access.log -> /var/log/httpd-access.log.0
/var/log/httpd-access.log.0 -> /var/log/httpd-access.log.1
access log 仍然是寫去 /var/log/httpd-access.log.1
等我 stop apache 再重新啟動才會變正常
請問一下這是什麼問題呢?
--