美文网首页
centos7 yum安装goaccess

centos7 yum安装goaccess

作者: CUFFS | 来源:发表于2017-03-31 14:19 被阅读357次

goaccess是一个日志分析工具,能分析nginx的访问日志,能生成友好的html文件。

goaccess安装

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
rpm -ivh epel-release-7-9.noarch.rpm
yum install goaccess

goaccess使用

goaccess -f ningx日志路径

goaccess生成html

  • 修改/etc/goaccess.conf
  • 文件尾部加入
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"  
date-format %d/%b/%Y  
time-format %H:%M:%S  
  • goaccess -d -f nginx日志路径 -a > /home/nginxlog.html

相关文章

网友评论

      本文标题:centos7 yum安装goaccess

      本文链接:https://www.haomeiwen.com/subject/qqhvottx.html