#安装依赖
yum -y install gcc gcc-c++ make expat-devel
yum install -y GeoIP-devel
yum install -y ncurses-devel
#安装goa
wget https://tar.goaccess.io/goaccess-1.3.tar.gz
$ tar -xzvf goaccess-1.3.tar.gz
$ cd goaccess-1.3/
$ ./configure --enable-utf8 --enable-geoip=legacy
$ make
#make install
#修改config
/usr/local/etc/goaccess/goaccess.conf
time-format %H:%M:%S
date-format %d/%b/%Y
log-format %h %1 “%r” %s %b “%R” “%u”
goaccess -a -d -f /www/wwwlogs/wechat.casocloud.com.log -p /usr/local/etc/goaccess/goaccess.conf -o /www/wwwroot/king.casocloud.com/stat/wechat.html
goaccess -p /usr/local/etc/goaccess/goaccess.conf /www/wwwlogs/wechat.casocloud.com.log -a -o /www/wwwroot/king.casocloud.com/stat/wechat.html --real-time-html --daemonize
%d:%t %^ ↩︎