鼎鼎知识库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11监控access日志以及可视化.md 431B

3 vuotta sitten
1234567891011121314151617181920
  1. ```
  2. --下载:sudo apt-get install goaccess
  3. --设置:goaccess access.log -o ../html/report.html --real-time-html --time-format='%H:%M:%S' --date-format='%d/%b/%Y' --log-format=COMBINED
  4. WebSocket server ready to accept new client connections
  5. --设置:sudo /etc/nginx/sites-available/default
  6. server {
  7. listen 8080;
  8. access_log logs/access.log main;
  9. location /report.html {
  10. alias /usr/local/html/report.html
  11. }
  12. }
  13. ```