Nginx日志监控 使用 goaccess查看nginx日志

nginx日志监控

yum install goaccess
 
安装使用教程
goaccess access.log -o ../html/report.html --real-time-html --time-format='%H:%M:%S' --date-format='%d-%b-Y' --log-format=COMBINED
 
配置nginx 日志访问
 
location /report.html {
alias /usr/local/nginx/html/report.html;
}
重启服务即可
 
nginx -s reload
原文地址:https://www.cnblogs.com/liuxm2017/p/11011397.html