windows下安装goaccess

windows下安装goaccess

goaccess为apache,ngix日志分析工具,仅支持linux系统,windows下安装需要使用cygwin

1、下载goaccess安装包

https://goaccess.io/
goaccess-1.2.tar.gz

2、安装cygwin

1、下载cygwin
http://www.cygwin.com/

2、Cygwin国内镜像地址
http://mirrors.sohu.com/cygwin/

3、在cygwin中需要安装的包
https://goaccess.io/faq#installation

libGeoIP-devel           | GeoIP2 C library
libncurses-devel         | Terminal display library
libncursesw10            | Terminal display library (wide-character)
gcc-core (C)             | GNU Compiler Collection
make                     | make utility
automake                 | GNU Makefiles
gettext                  | GNU Gettext
automake wrapper scripts | wrapper scripts for automake and aclocal

3、安装 goaccess

官方给出的安装步骤如下:

$ wget http://tar.goaccess.io/goaccess-1.2.tar.gz
$ tar -xzvf goaccess-1.2.tar.gz
$ cd goaccess-1.2/
$ ./configure --enable-utf8 --enable-geoip=legacy
$ make
# make install

在cygwin中按照上述方式安装不成功,需要去掉参数:--enable-geoip=legacy,命令如下:

$ ./configure --enable-utf8

4、报告输出

1、交互模式报告

goaccess access.log

2、html报告

goaccess access.log -a -o report.html

3、指定多个日志文件

goaccess access.log access.log.1
goaccess access*.log

报告截图:

这里写图片描述
这里写图片描述

参考:

https://github.com/allinurl/goaccess

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值