博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

mycat配置安装测试

Posted on 2018-06-12 22:59  moss_tan_jun  阅读(150)  评论(0编辑  收藏  举报

https://www.jianshu.com/p/26513f428ecf

 

#下载安装
#java jdk
mkdir /usr/local/java/
tar -zxvf jdk-7u80-linux-x64.tar.gz -C /usr/local/java/
# /etc/profile 添加
export JAVA_HOME=/usr/local/java/jdk1.7.0_80
export JAVA_BIN=/usr/local/java/jdk1.7.0_80/bin
export PATH=/usr/local/mysql/bin:$PATH:/usr/local/mongodb/bin:/usr/local/java/jdk1.7.0_80/bin
export CLASSPATH=./:/usr/local/java/jdk1.7.0_80/lib:/usr/local/java/jdk1.7.0_80/jre/lib
MYCAT_HOME=/usr/local/mycat/
export JAVA_HOME JAVA_BIN PATH CLASSPATH

/home/oldboy/tools
wget http://dl.mycat.io/1.6-RELEASE/Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz

tar -zxvf Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz -C /usr/local/

#
/usr/local/mycat/bin/mycat restart