安装zookeeper
下载
wget https://mirrors.sonic.net/apache/zookeeper/zookeeper-3.5.8/apache-zookeeper-3.5.8-bin.tar.gz
解压,修改配置文件
tar -zxvf apache-zookeeper-3.5.8-bin.tar.gz -C /usr/local
cd apache-zookeeper-3.5.8-bin/conf
mv zoo_sample.cfg zoo.cfg
运行
bin/zkServer.sh start
安装mycat web
下载
wget https://github.com/MyCATApache/Mycat-download/blob/master/mycat-web-1.0/Mycat-web-1.0-SNAPSHOT-20160617163048-linux.tar.gz
解压
tar -zxvf Mycat-web-1.0-SNAPSHOT-20160617163048-linuxtar.gz -C /usr/local
修改配置文件,zookeeper地址
vim /usr/local/mycat-web/mycat-web/WEB-INF/classes/mycat.properties
cd /usr/local/mycat-web
./start.sh
网友评论