Innotop介绍

 

Innotop是一款Perl脚本编写、开源、功能强大的MySQ的监控工具,它通过文本模式(命令行模式)监控,功能强大,配置简单,易于使用等等特性。Innotop这个项目位于https://github.com/innotop/innotop上。官方的介绍如下:

 

innotop is a 'top' clone for MySQL with many features and flexibility.

·         completely customizable; it even has a plugin interface

·         monitors many servers at once and can aggregate across them

The manual is embedded into the program in Perl's POD format, so it should be available through perldoc and man, and is still available online on the previous hosting (the project moved from google code to git): http://innotop.googlecode.com/svn/html/index.html

 

 

Innotop安装

 

 

在安装之前先要确定你的系统安装了Time::HiRes,Term::ReadKey,DBI,DBD::mysql这四个包。当然在执行perl Makefile.PL命令是会检查这些依赖项,如下所示:

 

 

[root@DB-Server ~]# cd /tmp
[root@DB-Server tmp]# unzip innotop-master.zip 
[root@DB-Server tmp]# cd innotop-master/
[root@DB-Serverinnotop-master]# ls
Changelog  COPYING  innotop  innotop.spec  INSTALL  Makefile.PL  MANIFEST  README.md  snapshot_queries.png  t
[root@DB-Server innotop-master]# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Warning: prerequisite DBD::mysql 1 not found.
Warning: prerequisite Term::ReadKey 2.1 not found.
Writing Makefile for innotop
[root@DB-Server innotop-master]# 
[root@DB-Server innotop-master]# yum search ReadKey
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * epel: ftp.cuhk.edu.hk
================================== N/S matched: ReadKey ==========================================
perl-TermReadKey.x86_64 : A perl module for simple terminal control
 
  Name and summary matches only, use "search all" for everything.
[root@DB-Server innotop-master]# 
[root@DB-Server innotop-master]#yum install perl-TermReadKey
[root@DB-Server innotop-master]#yum install perl-DBD-MySQL
[root@DB-Server innotop-master]#  perl Makefile.PL 
Writing Makefile for innotop
[root@DB-Server innotop-master]# make
cp innotop blib/script/innotop
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/innotop
Manifying blib/man1/innotop.1
[root@DB-Server innotop-master]# make install
Installing /usr/local/share/man/man1/innotop.1
Installing /usr/local/bin/innotop
Appending installation info to /usr/lib64/perl5/perllocal.pod
[root@DB-Server innotop-master]# 

相关文章:

  • 2021-11-30
  • 2021-11-17
  • 2021-11-19
  • 2021-11-22
  • 2021-11-23
  • 2021-11-28
  • 2021-11-28
  • 2021-12-25
猜你喜欢
  • 2022-12-23
  • 2021-07-09
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
相关资源
相似解决方案