kgh*_*bln 0 log-rotation apache-2.4 debian-jessie
好吧,有时看似简单的事情会变成灾难。
一旦我添加到 VirtualHost:
CustomLog "|usr/sbin/rotatelogs -l ${APACHE_LOG_DIR}/01030/%Y%W_01030.access.log 604800" combined
Run Code Online (Sandbox Code Playgroud)
我得到:
[Wed Nov 25 20:08:37.886766 2015] [mpm_prefork:notice] [pid 1381] AH00171: Graceful restart requests, do restart (2)No such file or directory: AH00104: 无法启动管道日志程序 'usr/sbin/ rotatelogs -l /var/log/apache2/40539/%Y%W_40539.access.log 604800'
[2015 年 11 月 25 日星期三 20:08:37.992571] [:emerg] [pid 1381] AH00019:无法打开日志,正在退出
Debian 8,Apache 2.4.10。
一定有什么东西在水里。在 2.4.10 周围看到了这个问题,但显然没有令人满意的答案。帮助将不胜感激。
小智 6
你错过了管道后的第一个斜线。 |/usr/sbin/rotatelogs
归档时间: |
|
查看次数: |
4481 次 |
最近记录: |