반응형 logrotate1 Linux Logrotate 설정하기 Logrotate 로그 파일을 일정시점, 파일 크기등 지정된 조건에 따라서 백업해주는 명령일정시점 : daily, weekly..파일크기 : 10MB 등. 설정파일 : /etc/logrotate.conf - Include /etc/logrotate.d : /etc/logrotate.d 디렉토리 하위의 모든 설정을 포함한다. [예제]/etc/logrotate.d/ansible 예제/var/log/nginx/*.log { daily missingok rotate 52 compress delaycompress notifempty create 640 nginx adm sharedscripts postrotate if [ -f /var/run/nginx.pid ]; then .. 2025. 4. 28. 이전 1 다음 반응형