ログローテーション(logrotate)を使ってみる ( httpd(apache)の設定例 )
ログローテーション(logrotate)を使ってみる ( httpd(apache)の設定例 )
WEB サーバーやメールサーバーなどのログは放っておくとファイルサイズがどんどん大きくなっていきます。 logrotate を使って一定の期間やサイズごとにファイルを分けるとログを扱いやすくなります。 その設定方法を説明します。 詳しい情報は man logrotate で確認するか、または次のリンク先をご覧ください。 logrotate(8) - Linux man page 設定ファイルの概要 logrotate の大本の設定ファイルは /etc/logrotate.conf です。 このファイルから、/etc/logrotate.d/ ディレクトリ以下にあるアプリケーションごとの設定ファイルが読み込まれるようになっています。 /etc/logrotate.conf ではデフォルト値の設定などを行い、/etc/logrotate.d/ 以下のファイルでローテーション対象のファイルなどを
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く