180style wiki
システム関連/web/apache2.0
をテンプレートにして作成
開始行:
*apache2.0 tips [#x0d1b093]
#contents
**rotatelogsを使ったログのローテート [#sd4aa87f]
Synopsis
rotatelogs [ -l ] logfile [ rotationtime [ offset ]] | [...
-出し分ける間隔は秒で指定 86400だと1日でrotate
-その後ろの540はUTCからのoffset 日本だと9時間ずれなので5...
-2.0.51 以降だと -l オプションが使えて local time で動く...
ErrorLog "|/usr/local/apache2/bin/rotatelogs /usr/local/...
CustomLog "|/usr/local/apache2/bin/rotatelogs /usr/local...
もしくは
ErrorLog "|/usr/local/apache2/bin/rotatelogs -l /usr/loc...
CustomLog "|/usr/local/apache2/bin/rotatelogs -l /usr/lo...
古いファイルはfindで見つけて削除する様にcron設定かな
-参考~
http://httpd.apache.org/docs/2.0/ja/programs/rotatelogs.h...
**変更したconfを反映させる [#i453ae4f]
/usr/local/apache2/bin/apachectl graceful
gracefulのオプションはリクエストを処理している最中の子プ...
運用中のサーバに対してconfの反映だけならrestartよりgracef...
終了行:
*apache2.0 tips [#x0d1b093]
#contents
**rotatelogsを使ったログのローテート [#sd4aa87f]
Synopsis
rotatelogs [ -l ] logfile [ rotationtime [ offset ]] | [...
-出し分ける間隔は秒で指定 86400だと1日でrotate
-その後ろの540はUTCからのoffset 日本だと9時間ずれなので5...
-2.0.51 以降だと -l オプションが使えて local time で動く...
ErrorLog "|/usr/local/apache2/bin/rotatelogs /usr/local/...
CustomLog "|/usr/local/apache2/bin/rotatelogs /usr/local...
もしくは
ErrorLog "|/usr/local/apache2/bin/rotatelogs -l /usr/loc...
CustomLog "|/usr/local/apache2/bin/rotatelogs -l /usr/lo...
古いファイルはfindで見つけて削除する様にcron設定かな
-参考~
http://httpd.apache.org/docs/2.0/ja/programs/rotatelogs.h...
**変更したconfを反映させる [#i453ae4f]
/usr/local/apache2/bin/apachectl graceful
gracefulのオプションはリクエストを処理している最中の子プ...
運用中のサーバに対してconfの反映だけならrestartよりgracef...
ページ名: