Nginx日志分析 2018-07-02 NGINX Nginx日志分析#####安装goaccess 1# tar.gz安装 配置goaccess1shell> vi ~/.goaccessrc # 添加如下内容 .goaccessrc123time-format %Tdate-format %d/%b/%Ylog-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u" Nginx日志格式12log_format access '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; 日志文件分析1shell> goaccess -f FILE.log > FILE.html 最后更新时间:2019-07-25 10:06:23 这里可以写作者留言,标签和 hexo 中所有变量及辅助函数等均可调用,示例:http://yoursite.com/2018/07/02/nginx-goaccess-analysis/ 赏 Prev MongoDB安装 Next No title