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
原文地址:https://www.cnblogs.com/moss_tan_jun/p/9175505.html