当前位置: 首页 > 工具软件 > MyCAT EYE > 使用案例 >

mycat eye的布署

东郭凯捷
2023-12-01

 

安装zookeeper


下载解压

wget  http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz
tar -zxvf zookeeper-3.4.6.tar.gz -C /usr/local/
cd /usr/local/zookeeper-3.4.6/conf
cp zoo_sample.cfg zoo.cfg

地址不能用,就用这个:http://archive.apache.org/dist/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz

启动zookeeper

cd /usr/local/zookeeper-3.4.6/bin/
./zkServer.sh start

安装mycat-eye


下载解压

wget https://raw.githubusercontent.com/MyCATApache/Mycat-download/master/mycat-web-1.0/Mycat-web-1.0-SNAPSHOT-20160617163048-linux.tar.gz
tar -zxvf Mycat-web-1.0-SNAPSHOT-20160617163048-linux.tar.gz  -C /usr/local/

修改zookeeper地址

cd /usr/local/mycat-web/mycat-web/WEB-INF/classes
vi mycat.properties 
zookeeper=localhost:2181 ->zookeeper=127.0.0.1:2181

或者http://dl.mycat.io/mycat-web-1.0/

直接下载解压就可以启动

启动mycat-eye

cd /usr/local/mycat-web
./start.sh &

访问mycat-eye

http://192.168.75.48:8082/mycat

 

 类似资料: