问答详情
源自:2-4 MySQL慢查日志分析工具之pt-query-digest

pt-query-digest 怎么安装

pt-query-digest 怎么安装

提问者:lg003x 2015-03-18 17:37

个回答

  • 小烦人精
    2019-04-22 11:17:10

    windows 下如何安装

  • 蓝梦亦云
    2018-05-17 20:13:49

    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/

  • eeeeea
    2018-03-18 13:24:55

    下载并安装:

    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


  • 我不帅
    2016-05-27 15:44:41

    linux基础不好,安装了很久都没解决,突然看到大家的留言,一哈就搞定了,哈哈哈

  • MrZ0123456
    2016-02-20 21:08:03

    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


  • sevenDay
    2015-12-16 19:37:28

    无法安装呀

  • GeorgeHao
    2015-11-22 10:29:26

    安装过程:

    [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/


  • newnewjiang
    2015-08-14 10:23:38

    楼上也不说说是哪个linux平台的?

  • biluo2014
    2015-07-29 11:16:32

    按照上面的方法可以安装,但是要放在usr/bin目录下

  • RaidenSmith
    2015-03-31 13:46:38

    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