1.安装perl模块

yum install -y perl-CPAN perl-Time-HiRes

2.源码安装

cd /usr/local/src
wget percona.com/get/percona-toolkit.tar.gz
tar zxvf percona-toolkit.tar.gz
cd percona-toolkit-3.1.0
perl Makefile.PL PREFIX=/usr/local/percona-toolkit
make && make install

3.测试

#获取服务摘要
/use/local/percona-toolkit/bin/pt-summary 

附:官网安装地址
https://www.percona.com/doc/percona-toolkit/2.2/installation.html