zoukankan      html  css  js  c++  java
  • goaccess安装和使用

    安装依赖

    $ sudo apt-get install libncursesw5-dev
    $ wget https://github.com/maxmind/geoip-api-c/releases/download/v1.6.11/GeoIP-1.6.11.tar.gz
    $ tar -xzvf GeoIP-1.6.11.tar.gz
    $ cd GeoIP-1.6.11
    $ ./configure
    $ make
    # make install

    安装

    $ 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

    配置 Nginx

    location /report.html {
                alias /home/zopen/nginx/html/report.html;    #指定个人配置的目录
            }
    #转发websocket请求
    location /goaccess { proxy_pass http://127.0.0.1:7890; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }

    启动

    --ws-url 需要改成自己的host+端口 如果是80 一定要加上
    $ /usr/bin/goaccess /usr/local/nginx/logs/nginx.log  -o /var/html/report.html  --real-time-html --time-format='%H:%M:%S'  --date-format='%d/%b/%Y'   --daemonize --ws-url=host:80/goaccess
    

      

      

  • 相关阅读:
    Spring -- 自定义转换器
    Spring乱码问题解决方案
    Spring 声明式事务
    Spring -- IOC
    Spring--入门
    mybatis 二级缓存
    Mybatis 缓存失效的几种情况
    MyBatis深入浅出--入门
    【RF库Collections测试】Get From Dictionary
    【RF库Collections测试】Get Dictionary Values
  • 原文地址:https://www.cnblogs.com/tl542475736/p/11628568.html
Copyright © 2011-2022 走看看