浏览文章
文章信息
Goaccess日志分析工具报错 | No time format was found on your conf file. | 解决
12532
代码(加上-p解决):
#!/bin/bash # 获取脚本所在目录 SOURCE="$0" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located done DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)" goaccess -f /www/wwwlogs/www.nicepairs.com-access_log -o "${DIR}"/access.html --real-time-html -p /etc/goaccess/goaccess.conf