安装
libmaxminddb
,避免出现 **
Missing development files for libmaxminddb library. **
wget https://github.com/maxmind/libmaxminddb/releases/download/1.8.0/libmaxminddb-1.8.0.tar.gz tar -xzvf libmaxminddb-1.8.0.tar.gz cd libmaxminddb-1.8.0 $ ./configure $ make $ make check $ sudo make install $ sudo sh -c "echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf" $ ldconfig
安装 ncurses-devel,避免出现:**configure: error: *** Missing development libraries for ncursesw**
wget https://tar.goaccess.io/goaccess-1.8.1.tar.gz $ tar -xzvf goaccess-1.8.1.tar.gz $ cd goaccess-1.8.1/ $ ./configure --enable-utf8 --enable-geoip=mmdb $ make # make install
输入 ** goaccess -V ** 验证,提示如下,表明安装成功。
GoAccess - 1.8.1. For more details visit: https://goaccess.io/ Copyright (C) 2009-2023 by Gerardo Orellana