LoginSignup
7
7

More than 5 years have passed since last update.

緊急にlogrotateしたい

Posted at

何か緊急に logrotate をしたくなることがあります.ないかもしれませんがあります.

logrotate したい設定ファイル名を以下のように指定します.

sudo logrotate -f /etc/logrotate.d/ファイル名

そうすると指定したものだけ logrotate が走るので容量が大きかったりすると圧縮されます.

7
7
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
7
7