0
0

More than 1 year has passed since last update.

centosでログローテーションを実行

Last updated at Posted at 2020-11-07

ログローテーションをすぐ実行する場合

日付の修正

* /var/lib/logrotate/logrotate.statusを修正して1日前の日付にする

エラーのチェック

# logrotate -dv /etc/logrotate.d/httpd

ローテーションの実行

# /etc/cron.daily/logrotate
# こちらでもいける
# /usr/sbin/logrotate -f /etc/logrotate.d/httpd
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0