Please state the source of the article. Welcome to add Echo wechat (wechat id: T2421499075) for exchange and learning. Invincible, according to not claim to always win, defeat not decadent, according to the ability to forge ahead. That’s how powerful it really is!!

Mycat is a database middleware and cannot be used directly as a database. All its operational data sources are extracted from the corresponding database. So we need a corresponding database to install and run Mycat. MySQL5.5 is pre-installed here. There are 3 servers installed in total, corresponding to 3 databases.

Mycat is Java language development, to run Mycat we need to install JDK environment, and need JDK1.7 or more versions can be.

Start by looking at the JDK for Linux

java -versionCopy the code

  • Suggest install JDK1.8 environment, installation tutorial: https://blog.csdn.net/xlecho/article/details/97266591

Download the Mycat Linux installation package

Download address: https://github.com/MyCATApache/Mycat-download/tree/master/1.6-RELEASE

After downloading, move to the automatic directory

Mkdir /usr/local/mycat // Move the uploaded compressed package to the Mycat file mv mycat-server-1.6-release-20161028204710-linux.tar. gz /usr/local/Mycat/Copy the code

Run the tar command to decompress the package

Tar - XZVF Mycat - server - 1.6 - RELEASE - 20161028204710 - Linux. Tar. GzCopy the code

Try to start

// Go to the bin directory and run the following command to start./mycat start // Go to the bin directory and run the following command to stop./mycat stopCopy the code

If no errors are reported, the installation is correct.

Be a blogger with boundaries. Be a blogger with boundaries