神器!最佳 Nginx 日志分析工具 GoAccess
美国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
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!!
点击进行留言回复
相关文章:
-
-
-
-
-
-
nginx实现动静分离实例讲解
为了加快网站的解析速度,可以把动态页面和静态页面由不同的服务器来解析,加快解析速度。降低原 来单个服务器的压力。 简单来说,就是使用正则表达式匹配过滤,然后交个...
[阅读全文]
-
-
-
-
-
网友评论