lmwtzw6u5l0 发表于 2015-9-4 12:11:14

Atlas+Keepalived系列一:安装Atlas:

  1:下载Atlas
  https://github.com/Qihoo360/Atlas/releases/download/2.2.1/Atlas-2.2.1.el6.x86_64.rpm
  2:安装Atlas



# rpm -ivh Atlas-2.2.1.el6.x86_64.rpm
Preparing...                ###########################################
1:Atlas                  ###########################################
# cd /usr/local/mysql-proxy/
# ls
binconfliblog

  3:配置Atlas:在配置之前我已经有了主从环境
  主:192.168.91.132
  从:192.168.91.144



# cd conf/
# ls
test.cnf
# vi test.cnf





在pwds的地方加密密码:
# cd /usr/local/mysql-proxy/bin/
# ./encrypt yourPassword
D2u4POC/BKbjgrn2rEkarA==


  4:启动Atlas:



# pwd
/usr/local/mysql-proxy/bin
# ./mysql-proxyd test start
OK: MySQL-Proxy of test is started
#

  
  5:查看Atlas的状态



# ./mysql-proxyd test status
MySQL-Proxy of test is running (3802)
MySQL-Proxy of test is running (3803)
# ps -ef | grep mysql-proxy
root      3802   10 00:35 ?      00:00:00 /usr/local/mysql-proxy/bin/mysql-proxy --defaults-file=/usr/local/mysql-proxy/conf/test.cnf
root      380338020 00:35 ?      00:00:00 /usr/local/mysql-proxy/bin/mysql-proxy --defaults-file=/usr/local/mysql-proxy/conf/test.cnf
root      383036140 00:36 pts/0    00:00:00 grep mysql-proxy

  
  
页: [1]
查看完整版本: Atlas+Keepalived系列一:安装Atlas: