Amoeba在CentOS6.5下的安装部署

Amoeba在CentOS6.5下的安装部署

 

1.需要的文件






2.部署过程

2.1下载amoeba

#mkdir /usr/local/amoeba/
#cd /usr/local/amoeba/

 

#md5sum  amoeba-mysql-binary-2.1.0-RC5.tar.gz
44f6708652a46f28a95338f35f5d4083  amoeba-mysql-binary-2.1.0-RC5.tar.gz

 

2.2配置java环境(Amoeba的运行必须依赖java,版本必须为1.5或以上,这里采用JDK1.6版本)

2.3安装jdk

#mkdir /soft && cd /soft

# chmod 755 jdk-6u25-linux-i586.bin
# ./jdk-6u25-linux-i586.bin
# mv jdk1.6.0_25/ /usr/local/jdk

 

2.4配置jdk

#vim/etc/profile

 

在文件最后添加如下内容


2.5配置amoeba环境变量

#vim/etc/profile
在结尾添加如下内容


2.6测试JDK和AMOEBA_HOME是否设置成功

# java-version


# cd$AMOEBA_HOME && pwd

2.7解压并配置amoeba配置文件

# tar-zxvf amoeba-mysql-binary-2.1.0-RC5.tar.gz
# cd bin/
#chmod 755 *
#amoeba      //如果显示下面的内容,证明amoeba的依耐关系安装完成


3.安装mysql

MySQL在Linux下的重要目录

数据库目录:/var/lib/mysql/

配置文件:/usr/share/mysql

相关命令:/usr/bin

启动脚本:/etc/rc.d/init.d

配置My.cnf文件的方法

cp/usr/share/mysql/my-huge.cnf  /etc/my.cnf

查看二进制文件

mysqlbinlog/var/lib/mysql/mysql-bin.000001

4.测试通过amoeba操作MySQL

4.1启动amoeba

[root@bogon bin]# amoeba start

log4j:WARN log4j config load completed from file:/usr/local/amoeba/conf/log4j.xml

log4j:WARN ip access config load completed from file:/usr/local/amoeba/conf/access_list.conf

2014-07-03 04:30:51,105 INFO  net.ServerableConnectionManager - Amoeba Monitor Server listening on /127.0.0.1:35367.

2014-07-03 04:30:51,106 INFO  net.ServerableConnectionManager - Amoeba for Mysql listening on 0.0.0.0/0.0.0.0:8066.

 

 

4.2通过8066端口登陆

可以通过Server version看到是由amoeba连接上MySQL服务器的

[root@bogon Desktop]# mysql -uroot -P8066 -h127.0.0.1 -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 646286321

Server version: 5.1.45-mysql-amoeba-proxy-2.0.1-BETA MySQL Community Server (GPL)

 

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

 

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

 

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

 

mysql>

 

 

 

也可以通过amoeba启动后的输出信息看出已经连接上amoeba

[root@bogon bin]# amoeba start

log4j:WARN log4j config load completed from file:/usr/local/amoeba/conf/log4j.xml

log4j:WARN ip access config load completed from file:/usr/local/amoeba/conf/access_list.conf

2014-07-03 04:30:51,105 INFO  net.ServerableConnectionManager - Amoeba Monitor Server listening on /127.0.0.1:35367.

2014-07-03 04:30:51,106 INFO  net.ServerableConnectionManager - Amoeba for Mysql listening on 0.0.0.0/0.0.0.0:8066.

2014-07-03 04:32:37,497 INFO  server.MysqlClientAuthenticator - Accepting conn=com.meidusa.amoeba.mysql.net.MysqlClientConnection@127.0.0.1:59388,hashcode=918201446

 

 

事先声明 下载之前先看描述里面的目录 不然不要在那里吐槽 目录 ........................................................................CentOS 6.5安装部分................................................. 设备需求.................................................. 3 Mysql安装手则 ..................................... 3 一、 下载Mysql软件 .......................................... 3 二、 安装Mysql软件 .......................................... 4 三、 Mysql设置 .......................................... 6 Amoeba安装手则 ..........................................10 一、 下载Amoeba软件..........................................10 安装Amoeba ..........................................10 二、 安装Amoeba依耐关系 .......................................... 安装JDK ..........................................11 三、 配置Amoeba .................................................12 配置dbServers.xml 文件 ......................12 配置amoeba.xml文件 ......................................... 13 启动 Amoeba ...............................................14 ..............................Windows安装部分............... 设备需求 ............................................................................................................................................................................. 16 Mysql安装手则 ..................................................................................................................................................................... 16 一、 下载Mysql软件 .................. 16 二、 Mysql设置 ........................ 17 Amoeba安装手则 ......................19 一、 下载Amoeba软件 ......................................19 二、 安装Amoeba依耐关系 ...............................20 安装JDK ............................................ 20 配置环境变量 ........................... 20 三、 配置Amoeba .............................................. 22 配置dbServers.xml 文件 ............................ 22 配置amoeba.xml文件 ..................... 24 启动 Amoeba ............................... 24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值