最近开始使用GoAccess,我能够访问控制台仪表盘,甚至得到静态html页面。但希望在服务器上有实时报告,但每次我尝试生成静态html或实时报告,它总是打开websocket,等待用户输入。
# goaccess /var/log/httpd/access_log -o /var/www/html/report.html
[PARSING /var/log/httpd/access_log] {92,75,851} @ {14,794/s}
WebSocket server ready to accept new client connections
###能够解决这个问题如下,现在整个进程运行在后台。现在将继续将其作为一个服务,当服务器重新启动时将自动启动
goaccess /var/log/httpd/access_log -o /var/www/html/report.html --real-time-html --daemonize