Nginx GoAccess安装与配置

1、下载并安装Geoip

$ wget https://github.com/maxmind/geoip-api-c/releases/download/v1.6.12/GeoIP-1.6.12.tar.gz

2、解压缩

$ tar -xzvf GeoIP-1.6.11.tar.gz

3、进入该目录编译并安装

$ cd GeoIP-1.6.11
$ ./configure
$ make

4、安装ncurses

sudo yum install ncurses-devel //或者下载 https://ftp.gnu.org/pub/gnu/ncurses/

5、下载并安装GoAccess goaccess.io网址查看下载办法

6、启动goaccess

$ goaccess access.log -o ../html/report.html --real-time-html --time-format='%H:%M:%S' --date-format='%d/%b/%Y' --log-format=COMBINED

猜你喜欢

转载自www.cnblogs.com/jackey2015/p/10659324.html
今日推荐