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
posted @ 2019-06-12 18:23  liuxm-刘小明  阅读(276)  评论(0编辑  收藏  举报