当前位置: 首页 > 工具软件 > GoAccess > 使用案例 >

goaccess

邓鸿彩
2023-12-01

#安装依赖
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


  1. %d:%t %^ ↩︎

 类似资料:

相关阅读

相关文章

相关问答