ITeye博客

amoeba安装手册(liunx)

bjameng · 2015-04-28 20:20 · liunx · 操作系统 · Markdown

  1. 准备:安装支持版本的jdk

  2. 下载amoeba,下载地址为: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
    

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。