ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
[TOC] > [github](https://github.com/allinurl/goaccess) > [home](https://goaccess.io/download) > [在线demo](https://rt.goaccess.io/?20200714222654) ## 概述 1. GoAccess允许使用任何自定义日志格式字符串。预定义的选项包括Apache,Nginx,Amazon S3,Elastic Load Balancing,CloudFront等 ## 安装 ### 编译安装 ``` $ wget https://tar.goaccess.io/goaccess-1.3.tar.gz $ tar -xzvf goaccess-1.3.tar.gz $ cd goaccess-1.3/ $ ./configure --enable-utf8 --enable-geoip=legacy $ make # make install ``` ### 直接安装 ``` yum install goaccess -y apt-get install goaccess -y brew install goaccess -y ``` ## 使用 ``` //在命令行中使用 goaccess im_www.log // 启动多日志 goaccess access.log access.log.1 // 生成html 页面 goaccess im_www.log -o report.html --log-format=COMMON // 实时监控 goaccess nginx/logs/access.log -o www/report.html --real-time-html --log-format=COMMON ``` ## 实例图片 ![dp2AJK.jpg](https://s1.ax1x.com/2020/08/13/dp2AJK.jpg)