logrotate および rotatelogs を使用して Apache でログをローテートする

Solution Verified - Updated -

Issue

  • Apache ログをローテートする方法に、rotatelogs (Apache に同梱) または logrotate (Linux に同梱) があります。どちらの方法を使用すれば良いですか?
  • logrotate を使用しても、Apache が停止したり、問題が発生したりしませんか?
  • サイズベースで access.log をローテートするにはどうすれば良いですか?
  • アクセスログローテーションのアーカイブを作成するにはどうすれば良いですか?
  • EWS ログを自動ローテートするにはどうすれば良いですか?

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 5
    • 6
  • Apache Web Server (httpd)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.