欧普下载是国内较新、较齐、较安全的软件下载基地!
当前位置:首页 ›› 其他软件 ›› 编程相关 ›› Anemometer(mysql慢查询日志分析工具)下载

Anemometer(mysql慢查询日志分析工具) 免费版

Anemometer[下载地址]
Anemometer(mysql慢查询日志分析工具) 免费版

Anemometer是一款非常实用的mysql慢查询日志分析工具,该工具是基于LAMP编写的,使用前需要搭建LAMP环境,它能够实现慢查询日志收集信息,方便dba对数据库慢查询的观测和统计。需要的朋友赶紧来本站下载吧!

Anemometer(mysql慢查询日志分析工具) 免费版

Anemometer安装说明

Anemometer是一套基于LAMP编写的MySQL慢查询展示工具,所以需要搭建LAMP环境。

mysql的安装部署,由于小编是DBA,相信你也是,在这里也就不提供了,反正你要安装好MySQL。

首先,安装percona-toolkit,我们要用到其中的日志分析工具pt-query-digest

yum install -y perl-DBI

yum install -y perl-DBD-MySQL

tar -zxvf percona-toolkit_2.2.14.tar.gz

cd percona-toolkit-2.2.14/

perl Makefile.PL

make

make test

make install

然后安装PHP以及其依赖的包,直接yum搞定(其中php版本要求不低于5.3,现在一般的环境也不会低于5.3的)

yum -y install libxml2*

yum -y install libxml2-devel*

yum -y install php-common

yum -y install php-bcmath

yum -y install php-mysql

yum -y install php-dba

yum -y install php-cli

yum -y install php-gd

yum -y install php-pdo

yum -y install php

修改php配置,去掉前面的分号,等号后添加PRC

date.timezone =PRC(修改时区配置,否则会有500的错误)

安装apached:

yum install httpd*

配置修改

1.在#AddType application/x-tar .tgz 下添加如下内容

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

2.将Options Indexes FollowSymLinks修改为:

Options -Indexes FollowSymLinks

3.在DirectoryIndex index.html index.html.var

后添加index.php

DirectoryIndex index.html index.html.var index.php

安装Anemometer-maste项目:

解压缩Anemometer-master.zip.zip文件。

mv Anemometer-master /var/www/html/anemometer

cp /var/www/html/anemometer/conf/sample.config.inc.php /var/www/html/anemometer/conf/config.inc.php

修改config.inc.php,为自己后台数据库的ip db 用户 密码

Anemometer(mysql慢查询日志分析工具) 免费版

和$conf['plugins']中的user和password

Anemometer(mysql慢查询日志分析工具) 免费版

启动httpd服务

service httpd restart

此时项目安装成功。

Anemometer(mysql慢查询日志分析工具) 免费版

接下来配置数据库服务器端采集信息

在要采集端安装pt工具集,部署如下脚本到定时任务,执行频率自定义

pt-query-digest --user=root --password=1qaz2wsx --port=3306 --review h=172.21.24.46,D=slow_query_log_62114_3307,t=global_query_review --history h=172.21.24.46,D=slow_query_log_62114_3307,t=global_query_review_history --no-report --limit=0% --filter=" \$event->{Bytes} = length(\$event->{arg}) and \$event->{hostname}=\"$HOSTNAME\"" /data0/mysql_3307/slow-queries.log

执行后会在页面查询到

Anemometer(mysql慢查询日志分析工具) 免费版

至此,部署完成

下载Anemometer(mysql慢查询日志分析工具) 免费版
本地下载地址:
本地电信下载
本地电信下载
本地联通下载
本地联通下载
本地迅雷下载
本地迅雷下载
移动用户下载
移动用户下载

版权声明:本站提的序列号、注册码、注册机、补丁等均来自互联网,仅供学习交流之用,请在下载后24小时内删除。

相关文章
软件评论
请自觉遵守互联网相关政策法规,评论内容只代表网友观点,与本站立场无关!
    登录   注册