SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы
Список вопросов ПечатьМетки: logrotate apache nginx httpd логирование /etc/logrotate.d
| RemiZOffAlex Создано: 2020-11-01 06:53:47.072824 Обновлено: 2024-04-08 02:02:46.887699 |
|---|
Примеры файловdocker/var/lib/docker/containers/*/*.log {
httpd/var/log/httpd/*log {
missingok
notifempty
sharedscripts
delaycompress
postrotate
/bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
endscript
}
nginx/var/log/nginx/*log {
create 0664 nginx root
daily
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}
Удалять файлы старше 7 дней и/или больше 100 мегабайт /var/log/nginx/*log {
|