shell脚本:MySQL监控软件mytop的安装
发布时间:2014-12-05 编辑:jiaochengji.com
本文分享一例shell脚本,用于安装mysql的监控软件mytop,有兴趣的朋友可以参考研究下。
本节主要内容:
用shell脚本安装mytop监控工具
脚本内容:
复制代码 代码示例:
#!/bin/bash
#site: www.jiaochengji.com
# mysql监控软件 mytop
#function install mysql monitor -----mytop
mkdir data
cd data
wget http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-2.30.tar.gz
tar zxvf TermReadKey-2.30.tar.gz
cd TermReadKey-2.30
perl Makefile.PL
make
make test
make install
cd ..
wget http://cpan.uwinnipeg.ca/cpan/authors/id/T/TI/TIMB/DBI-1.616.tar.gz
tar zxvf DBI-1.616.tar.gz
cd DBI-1.616
perl Makefile.PL
make
make test
make intall
cd ..
yum -y install perl-DBD-MySQL perl-DBI
wget http://jeremy.zawodny.com/mysql/mytop/mytop-1.6.tar.gz
tar zxvf mytop-1.6.tar.gz
cd mytop-1.6
perl Makefile.PL
make
make test
make install
./mytop -u admin -p "12345678" -h 127.0.0.1:3306
#site: www.jiaochengji.com
# mysql监控软件 mytop
#function install mysql monitor -----mytop
mkdir data
cd data
wget http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-2.30.tar.gz
tar zxvf TermReadKey-2.30.tar.gz
cd TermReadKey-2.30
perl Makefile.PL
make
make test
make install
cd ..
wget http://cpan.uwinnipeg.ca/cpan/authors/id/T/TI/TIMB/DBI-1.616.tar.gz
tar zxvf DBI-1.616.tar.gz
cd DBI-1.616
perl Makefile.PL
make
make test
make intall
cd ..
yum -y install perl-DBD-MySQL perl-DBI
wget http://jeremy.zawodny.com/mysql/mytop/mytop-1.6.tar.gz
tar zxvf mytop-1.6.tar.gz
cd mytop-1.6
perl Makefile.PL
make
make test
make install
./mytop -u admin -p "12345678" -h 127.0.0.1:3306
您可能感兴趣的文章:
shell脚本:MySQL监控软件mytop的安装
mysql备份与同步脚本
linux下mysql 5.5.8 源码编译安装
php高级程序员该学什么
一个监控mysql主从健康状态的shell脚本
mysql 5.1自动安装的shell脚本
Ubuntu下安装搭建MySQL环境步骤介绍
自动监控mysql主从同步的shell脚本代码
Ubuntu 11.10安装MySQL 5.5.x版本
Linux Apache Mysql PHP典型配置
上一篇:shell去掉文件中空行的方法详解
下一篇:shell比较两个字符串是否相等的方法
[关闭]