当前位置: 移动技术网 > 网络运营>服务器>nginx > 神器!最佳 Nginx 日志分析工具 GoAccess

神器!最佳 Nginx 日志分析工具 GoAccess

2019年04月22日  | 移动技术网网络运营  | 我要评论

美国vps推荐,莫麟传奇之四大古国全集,小童子暗藏春色

使用方法有两种,可以用 xshell 或 putty 上去命令查看,也可以生成 html 报告。

下面介绍goaccess 在 centos 上的安装方法:

1. 需要安装 geoip, ncurses, glib2, 一句搞定

复制代码 代码如下:

#yum -y install glib2 glib2-devel ncurses ncurses-devel geoip geoip-devel

2. 下载 goaccess 解压编译安装
复制代码 代码如下:

# wget http://downloads.sourceforge.net/project/goaccess/0.5/goaccess-0.5.tar.gz
# tar zxvf goaccess-0.5.tar.gz
# cd goaccess-0.5
# ./configure --enable-geoip --enable-utf8
# make && make install
# make clean

3. 好了,试试装好没
复制代码 代码如下:

# goaccess

看到以下结果就说明装好了
复制代码 代码如下:

goaccess - 0.5
usage: goaccess [ -e ip_address][ - a ][ - c ]< -f log_file >
the following options can also be supplied to the command:
-f - path to input log file.
-c - prompt log/date configuration window.
-a - enable a list of user-agents by host.
for faster parsing, don't enable this flag.
-e - exclude an ip from being counted under the
host module. disabled by default.
examples can be found by running `man goaccess`.
for more details visit: http://goaccess.prosoftcorp.com
goaccess copyright (c) 2009-2012 gnu gpl'd, by gerardo orellana

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网