惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Schneier on Security
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
C
Cybersecurity and Infrastructure Security Agency CISA
Engineering at Meta
Engineering at Meta
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
T
Threat Research - Cisco Blogs
C
Cisco Blogs
Recent Announcements
Recent Announcements
S
Securelist
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
P
Privacy & Cybersecurity Law Blog
宝玉的分享
宝玉的分享
D
Darknet – Hacking Tools, Hacker News & Cyber Security
L
LINUX DO - 热门话题
T
Tor Project blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
月光博客
月光博客
AWS News Blog
AWS News Blog
P
Proofpoint News Feed
博客园 - 司徒正美
L
LINUX DO - 最新话题
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
H
Help Net Security
Spread Privacy
Spread Privacy
PCI Perspectives
PCI Perspectives
Project Zero
Project Zero
I
Intezer
T
The Blog of Author Tim Ferriss
有赞技术团队
有赞技术团队
The Last Watchdog
The Last Watchdog
C
Check Point Blog
Blog — PlanetScale
Blog — PlanetScale
B
Blog RSS Feed
MyScale Blog
MyScale Blog
V
Vulnerabilities – Threatpost
Recorded Future
Recorded Future
T
Tenable Blog
Jina AI
Jina AI
D
DataBreaches.Net
阮一峰的网络日志
阮一峰的网络日志

博客园 - 成都兰斯

南京电信IPTV折腾记 acme在群晖下自动更新证书 群晖3622使用nvme硬盘 curl 绑定域名访问 nginx日志分析工具goaccesss Java和C#排序差异 Win下Rsync安装 zte交换机 操作 SQL Server 数据的索引引发的血案 Dell服务器通过IPMI调整风扇转速 ipmi调整超微主板 N1 救砖 超微主板不识别M2-解决方案 Centos7安装zookpeer Centos7 安装Java8 通过CMD命令行打开防火墙端口 Windows win10 L2TP拨号 Esxi直通板载Sata Esxi 增加网卡驱动 生成ISO
centos6安装goaccess
成都兰斯 · 2020-06-10 · via 博客园 - 成都兰斯

  最近一直在分析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