• centos6安装goaccess


      最近一直在分析nginx的日志,希望加入监控,目前看来,goaccess是比较好的方案。

    goaccess 目前的版本是1.4。官方地址如下:https://goaccess.io/download

    根据官方文档进行安装。

    $ wget https://tar.goaccess.io/goaccess-1.4.tar.gz
    $ tar -xzvf goaccess-1.4.tar.gz
    $ cd goaccess-1.4/
    $ ./configure --enable-utf8 --enable-geoip=legacy
    $ make
    # make install
    在执行到 configure这步的时候,会提示如下错误。
    checking for GeoIP_new in -lGeoIP... no
    configure: error: 
        *** Missing development files for the GeoIP library

    看来是缺少GeoIP包。然后根据搜索结果提示,yum安装geo包失败。改为手动安装。

    $ wget https://github.com/maxmind/geoip-api-c/releases/download/v1.6.12/GeoIP-1.6.12.tar.gz
    $ tar -xzvf GeoIP-1.6.12.tar.gz
    $ cd GeoIP-1.6.12
    $ ./configure
    $ make
    # make install

    安装完成后,再进行goaccess的安装,configure通过,但是,make 和make install的过程中再次报错。

    报错内容:

    error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory

    把对应文件做软连,命令如下:

    ln -s /usr/local/lib/libGeoIP.so* /lib64/

    然后再make && make install。

    搞定

    生产上,又增加了一个异常。

    checking for mvaddwstr in -lncursesw... no
    configure: error: *** Missing development libraries for ncursesw

    查询了下,需要ncurses组件,那就yum一个

    yum -y install ncurses-devel

    gogogo

  • 相关阅读:
    cf 811c Vladik and Memorable Trip
    Codeforces 837D--Round Subset (DP)
    codeforces798C
    Codeforces 814C
    CodeForces 610D Vika and Segments
    CodeForces 593D Happy Tree Party
    hdu 5564 Clarke and digits
    hdu 5517 Triple
    codeforces 584E Anton and Ira [想法题]
    codeforces 582A GCD Table
  • 原文地址:https://www.cnblogs.com/dreamdale/p/13084785.html
Copyright © 2020-2023  润新知