下载解压
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
下载解压
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