[问题描述]: httpd服务日志配置不生效,设置完日志配置,访问httpd服务,日志未记录。 [环境信息]: 机器类型:ECS 内核信息: [root@iZbp1gc4szu3xmuejrr3c6Z user]# uname -r 5.17.0-1.an23.x86_64 操作系统信息: [root@iZbp1gc4szu3xmuejrr3c6Z user]# cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" [问题发生概率]:必现 [复现步骤]: 1、在CustomLog "logs/access_log" combined行下加入CustomLog "logs/test_log" combined信息 2、重启服务 systemctl restart httpd 3、查看日志文件是否生成 ls /etc/httpd/logs/ 4、访问默认页面 crul host_ip,如curl 172.16.0.246 5、查看日志是否有记录cat /etc/httpd/logs/test_log 可以查看cat /etc/httpd/logs/default.log是有新增日志
haiyang ,帮忙贴一下an8生效的日志信息作对比
已解决