Installing the Percona-toolkit tool

Source: Internet
Author: User
Tags install perl percona

Originally was ready to install Maatkit, but Maatkit has become a part of the Percona-toolkit, so simply install Percona-toolkit directly.

Preparing for the installation environment (very important), because Percona-toolkit requires a Perl environment, you know what we have to prepare for what it needs. The following is a summary of my experience of the installation process to write a script, you can use directly, eliminating the pain of the installation process.

#!/bin/bash
yum-y Install perl-devel
mkdir ~/test
cd ~/test
#下载perl环境所需安装包并安装
wget www.cpan.org/authors/id/T/TI/TIMB/DBI-1.628.tar.gz
tar zxf dbi-1.628.tar.gz
cd DBI-1.628
perl makefile.pl make
&& make install
CD.
wget http://www.cpan.org/authors/id/M/MS/MSCHWERN/Test-Simple-0.98.tar.gz
tar zxf test-simple-0.98.tar.gz
CD test-simple-0.98
perl makefile.pl make
&& make install
CD.
wget http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/Time-HiRes-1.9726.tar.gz
tar zxf time-hires-1.9726.tar.gz
CD time-hires-1.9726
perl makefile.pl make
&& make install
CD.
wget http://www.cpan.org/authors/id/A/AN/ANDK/CPAN-2.00.tar.gz
tar zxf cpan-2.00.tar.gz
CD CPAN-2.00
Perl makefile.pl make
&& make install
CD.
wget http://www.percona.com/redir/downloads/percona-toolkit/2.2.4/percona-toolkit-2.2.4.tar.gz
Tar zxf percona-toolkit-2.2.4.tar.gz
cd percona-toolkit-2.2.4
perl makefile.pl make
&& make install
CD

I have tested it and can use it.

This article is from the "embrace open source world sharing open Source Technology" blog, please be sure to keep this source http://heisedeyan.blog.51cto.com/3392968/1285391

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.