lg003x
2015-03-18 17:37
pt-query-digest 怎么安装
windows 下如何安装
centos7 LNMP
安装依赖工具:
yum install perl-DBI
yum install perl-DBD-MySQL
yum install perl-Time-HiRes
yum install perl-IO-Socket-SSL
yum install perl-Digest-MD5
下载pt-query-disgest 、 授权 、 将其放到/usr/bin下:
wget percona.com/get/pt-query-digest
chmod u+x pt-query-digest
mv /usr/src/pt-query-digest /usr/bin/
下载并安装:
wget https://www.percona.com/downloads/percona-toolkit/2.2.16/RPM/percona-toolkit-2.2.16-1.noarch.rpm && yum localinstall -y percona-toolkit-2.2.16-1.noarch.rpm
linux基础不好,安装了很久都没解决,突然看到大家的留言,一哈就搞定了,哈哈哈
1:安装于Perl相关的模块
yum install perl-DBI
yum install perl-DBD-MySQL
yum install perl-Time-HiRes
yum install perl-IO-Socket-SSL
2:下载和安装percona toolkit的包
http://pkgs.repoforge.org/perl-TermReadKey/(key)
https://www.percona.com/downloads/percona-toolkit/ (tool)
wget http://pkgs.repoforge.org/perl-TermReadKey/perl-TermReadKey-2.30-1.el3.rf.x86_64.rpm
rpm -ivh perl-TermReadKey-2.30-1.el3.rf.x86_64.rpm
wget https://www.percona.com/downloads/percona-toolkit/2.2.14/RPM/percona-toolkit-2.2.14-1.noarch.rpm
rpm -ivh percona-toolkit-2.2.14-1.noarch.rpm
注意:需要安装Term::ReadKey 包,否则会报perl(Term::ReadKey) is needed by percona-toolkit-2.2.14-1.noarch
无法安装呀
安装过程:
[root@localhost-centos6 ~]# wget percona.com/get/pt-query-digest
[root@localhost-centos6 ~]# chmod u+x pt-query-digest
[root@localhost-centos6 ~]# mv /root/pt-query-digest /usr/bin/
楼上也不说说是哪个linux平台的?
按照上面的方法可以安装,但是要放在usr/bin目录下
wget http://www.percona.com/get/pt-query-digest
chmod +x pt-query-digest
或者下载整套工具
wget percona.com/get/percona-toolkit.rpm
rpm -ivh percona-toolkit-2.2.13-1.noarch.rpm
wget percona.com/get/percona-toolkit.tar.gz
tar -zxvf percona-toolkit-2.2.13.tar.gz
cd percona-toolkit-2.2.13
perl Makefile.PL
make && make install
性能优化之MySQL优化
101639 学习 · 221 问题
相似问题