echo edited, welcome to reprint, please declare the source of the article. Welcome to add echo micro letter (Micro Signal: t2421499075) the exchange of learning. Battle undefeated, according to not claiming victorious, defeat after defeat is not decadent, according to energy struggling to move forward. - This is the real rated power! ! !
Mycat is a middleware database, and can not be directly used when the database, all of its operations in the corresponding database data source is taken out. So we need to be installed to run Mycat corresponding database, here is preinstalled MySQL5.5, installed a total of three servers, corresponding to the three databases.
Mycat is the java language development, operation Mycat we need to install JDK environment, and need more than JDK1.7 version can.
First check the linux JDK
java -version
- We recommended to install JDK1.8 environment, installation tutorial: https://blog.csdn.net/xlecho/article/details/97266591
Download Mycat Linux installation package
Download: https://github.com/MyCATApache/Mycat-download/tree/master/1.6-RELEASE
Move to the directory automatically after the download is complete
// 自定义一个目录
mkdir /usr/local/Mycat
// 将上传的压缩包移动到Mycat文件
mv Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz /usr/local/Mycat/
Use tar command to extract
tar -xzvf Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz
Try to start
// 进入bin目录,输入如下命令(启动)
./mycat start
// 进入bin目录,输入如下命令(停止)
./mycat stop
If there is no error it has been properly installed.
To be a bottom line of the main blog
To be a bottom line of the main blog