Общие > Веб Сервера
Как в апаче настроить ротацию логов
HUNTER:
Как в апаче правильно настроить ротацию логов, подскажите плиз, система Win2k
ThE0ReTiC:
Используй rotatelogs.exe
HUNTER:
а сам синтаксис?
ThE0ReTiC:
Раз тебе настолько лень самому запустить екзешник без параметров - читай, там все написано:
--- Цитировать ---
E:\\usr\\local\\Apache\\bin>rotatelogs
Usage: rotatelogs [offset minutes from UTC]
Add this:
TransferLog "|rotatelogs /some/where 86400"
to httpd.conf. The generated name will be /some/where.nnnn where nnnn is the
system time at which the log nominally starts (N.B. this time will always be a
multiple of the rotation time, so you can synchronize cron scripts with it).
At the end of each rotation time a new log is started.
--- Конец цитаты ---
HUNTER:
Понял, пасиб тебе! Просто они у меня почему то не хотят ротироваться!
Навигация
Перейти к полной версии