エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Nginxログローテートの設定の実例 - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Nginxログローテートの設定の実例 - Qiita
ll /etc/logrotate.d/nginx -rw-r--r-- 1 root root 403 Nov 26 19:36 /etc/logrotate.d/nginx # Do not... ll /etc/logrotate.d/nginx -rw-r--r-- 1 root root 403 Nov 26 19:36 /etc/logrotate.d/nginx # Do not modify this file by hand! "/var/log/nginx/access.log" "/var/log/nginx/error.log" { missingok notifempty daily rotate 7 create 644 www-data root # permission と owner は適宜注意 compress delaycompress notifempty sharedscripts postrotate [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid` endsc