개발자 Q&A

개발하다 막혔다면? 여기서 질문하세요! 초보부터 고수까지, 함께 고민하고 해결하는 공간입니다. 누구나 자유롭게 질문하고 답변을 남겨보세요!

2025.04.19 07:34

static 로그파일 rotate 기능에 대한 질문

목록
  • Azure마스터 4일 전 2025.04.19 07:34
  • 6
    1
저는 Apache Server를 설치하여 운영 중인데요,

--enable-static-rotatelogs 옵션을 사용하여 로그파일을 자동으로 rotate 시키고 싶은데요,

static 로그파일 rotate 기능을 활성화하는 방법을 알려주시면 감사하겠습니다.

    댓글목록

    profile_image
    나우호스팅  4일 전

    아래는 답변입니다.

    static 로그파일 rotate 기능을 활성화하려면, 로그파일 rotate을 위한 프로그램인 rotatelogs를 설치해야 합니다. 로그파일 rotate을 위해 필요한 옵션인 --enable-static-rotatelogs 옵션은 Apache Server의 빌드 시에만 사용할 수 있습니다.

    로트리거 프로그램을 설치한 후, 로그파일 rotate을 활성화하려면, Apache Server의 설정 파일인 httpd.conf 파일에 다음 줄을 추가하면 됩니다.

    LogFormat "%h %l %u %t %r %s %b" common
    LogFormat "%h %l %u %t %r %s %b" combined
    LogFormat "%h %u %t %r %s %b" combinedio
    LogFormat "%{m}t %h %l %u %t "file" %r %s %b" common_logformat
    LogFormat "%{m}t %h %l %u %t "file" %r %s %b" combined_logformat
    LogFormat "%{m}t %h %u %t "file" %r %s %b" combined_logformat_io
    LogFormat "%{m}t %h %l %u %t "file" %r %s %b" combined_logformat_cgi
    LogFormat "%{m}t %h %u %t "file" %r %s %b" combined_logformat_common
    LogFormat "%{m}t %h %l %u %t "file" %r %s %b" combined_logformat_commonio
    LogFormat "%{m}t %h %u %t "file" %r %s %b" combined_logformat_commonio_cgi

    LogFormat "%{m}t %h %l %u %t "file" %r %s %b" combined_logformat_commonio_cgi
    LogFormat "%{m}t %h %u %t "file" %r %s %b" combined_logformat_logio
    LogFormat "%{m}t %h %u %t "file" %r %s %b" combined_logformat_logio_cgi
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_cgi
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_logio
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_logio_cgi
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_logio_cgi
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_logio
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log_cgi
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log_cgi
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log_c
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log_c
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s %b" log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%{m}t %h %u %t "file" %r %s "log_format_log
    LogFormat "%

    2025-04-19 07:35

  • 개발자 Q&A 포인트 정책
      글쓰기
      50P
      댓글
      10P
  • 전체 13,681건 / 64 페이지

검색

게시물 검색