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

猜你喜欢

转载自blog.csdn.net/huryer/article/details/80323839