MySQL慢查询分析工具pt-query-digest详解
Mysql , 工具 , 日志 / 2021年7月5日

安装  pt-query-digest apt-get install percona-toolkit 各工具用法简介(详细内容:https://www.percona.com/doc/percona-toolkit/2.2/index.html) (1)慢查询日志分析统计 pt-query-digest /usr/local/mysql/data/slow.log (2)服务器摘要 p...

Installation GoAccess On Ubuntu / Debain
工具 , 日志 / 2019年5月20日

Installation Installing GoAccess is pretty easy. Just download, extract and compile it with: $ wget https://tar.goaccess.io/goaccess-1.3.tar.gz $ tar -xzvf goaccess-1.3.tar.gz $ cd goaccess-1.3/ $ ./c...

Debain install awstats
日志 / 2017年9月21日

Introduction From http://awstats.sourceforge.net/ : AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer...

Linux 下 apache 日志分析与状态查看
Apache , Linux , 日志 / 2017年1月22日

ps -ef |grep httpd|wc -l 或 ps -aux |grep httpd |wc -l 2.查看当前Apache并发连接数和TCP连接状态 netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'   其中的SYN_RECV表示正在等待处理的请求数; ESTABLISHED...

LINUX用户登录后精确命令记录(history 按时间、用户显示命令记录)
Linux , 日志 / 2016年9月27日

精确的记录 每个用户的操作记录 # 设置保存历史命令的文件大小 export HISTFILESIZE=10000000 # 保存历史命令条数 export HISTSIZE=1000000 # 实时记录历史命令,默认只有在用户退出之后才会统一记录,很容易造成多个用户间的相互覆盖。 export PROMPT_COMMAND="history -a" # 记录每条历史命令的执行时间 export ...

nginx访问日志,错误日志参数说明
Nginx , 日志 / 2016年5月26日

访问日志[Access.log] '$remote_addr $remote_user [$time_local] "$request" $http_host' '$status $upstream_status $body_bytes_sent "$http_referer"' '"$http_user_agent" $ssl_protocol $ssl_cipher $upstream_add...

goaccess-nginx日志分析工具简介/安装
日志 / 2016年5月16日

提到web服务器就不得不说nginx。这款由俄罗斯人开发的小巧的web服务软件近几年来风靡大江南北;成为许多草根站长建设网站的首选。但由于历史原因,nginx在日志分析工具相较于传统的apache、lighthttp等要匮乏的多。 笔者今天在这里为各位介绍一个牛X的实时日志分析工具GoAccess。不仅安装简单,功能强大,并且支持nginx日志格式。实在是草根站长们手中又一犀利武器,不可不备^_^...