linux - Ubuntu Apache2.4 配置日记每天生成提示【CustomLog: command not found】
本文介绍了linux - Ubuntu Apache2.4 配置日记每天生成提示【CustomLog: command not found】的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
Ubuntu 14.04 64 位 Apache2.4配置日记每天生成
提示【CustomLog: command not found】
使用以下配置方法
配置方法:
将其改为ErrorLog | /usr/local/apache/bin/rotatelogs /home/logs/www/%Y_%m_%d_error_log 86400 480″
CustomLog | /usr/local/apache/bin/rotatelogs /home/logs/www/%Y_%m_%d_access_log 86400 480″common
解决方案
CustomLog
是apache配置文件中的指令 不是shell命令,敲进命令行是想干嘛 ?
另外你的引号也不对,要用半角符号"
这篇关于linux - Ubuntu Apache2.4 配置日记每天生成提示【CustomLog: command not found】的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文