看板 FreeBSD 關於我們 聯絡資訊
※ 引述《[email protected] ( )》之銘言: > 我的 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 再重新啟動才會變正常 > 請問一下這是什麼問題呢? 因為newyslog.conf的參數下錯了... 聽說在最後面還要加上httpd的pid file.... -- ˙ ˙ ◢▇◣ ◢▇◣ ▇ ▇ █▇◣ █▇◣ █▇◣ ◢▇◣ █▇▉ ˙ █ █ █ █ █ ▉ █ ▉ █▆ █▆▉ ▉▉▉ ˙ ◥█◤ ◥█◤ ◥█◤ ██◤ █◥▆ █▆◤ █ ▉ ▉▉▉˙ CDBBS 中正築夢園BBS站 歡迎蒞臨參觀 cd.twbbs.org (140.123.20.230) http://cd.twbbs.org Author: wrj ★ From: 218.172.95.19