参考:https://goaccess.io/download


yum install gcc gcc-c++
yum install GeoIP-devel
yum install glib2 glib2-devel GeoIP-devel  ncurses-devel zlib zlib-devel
wget 
tar -xzvf goaccess-1.2.tar.gz
cd goaccess-1.2/
./configure --enable-utf8 --enable-geoip=legacy
make && make install


ln -s /usr/local/bin/goaccess /usr/bin/