1、安装GoAccess

yum install goaccess

2、带参数启动

goaccess /data/nginx/logs/access.log  -o /data/nginx/html/report.html -p /etc/goaccess/goaccess.conf --real-time-html --time-format='%H:%M:%S'--date-format='%d/%b/%Y' --log-format=COMBINED --daemonize

3、配置文件/etc/goaccess/goaccess.conf

port:端口,默认7890
ssl-cert:
ssl-key:
ws-url: