---
title: "amoeba安装手册（liunx）"
author: "bjameng"
date: "2015-04-28T20:20:46Z"
tags: []
categories: ["操作系统"]
slug: "amoeba-liunx"
draft: false
lastmod: "2015-04-28T20:20:34Z"
id: 2206919
url: "https://bjameng.iteye.com/blog/2206919"
---

1. 准备：安装支持版本的jdk
2. 下载amoeba，下载地址为：[http://sourceforge.net/projects/amoeba/files](http://sourceforge.net/projects/amoeba/files)找到对应的版本，我们这里用的是amoeba-mysql-3.0.5-RC-distribution.zip。
3. 解压amoeba并移动到相应目录
   
   ```
   #unzip amoeba-mysql-3.0.5-RC-distribution.zip
   #mv amoeba-mysql-3.0.5-RC-distribution /usr/local/amoeba
   ```
4. 配置/usr/local/amoeba/conf/dbServer.xml中连接数据库的帐号与密码。在abstractServer中配置数据库的用户、密码、schema、端口号信息。在下面的server1、server2中配置对应的ip地址。在poolNames中配置一组dbServer的name，可以做一个读取的库来使用。
5. 配置amoeba.xml中读写池，主要配置文件下端的writePool和readPool对应的数据库名称。
6. 启动amoeba
   
   ```
   #/usr/local/amoeba/bin/launcher
   ```
7. 配置完成后，请注意防火墙要开启8066端口。
8. 通过amoeba访问数据库
   
   ```
   mysql -uroot -P8066 -p
   ```