接上一篇:实战_21_Mycat_MySql更新数据库失败 --read-only
https://blog.csdn.net/weixin_40816738/article/details/100059688
- 下载mycat
wget http://dl.mycat.io/1.6.5/Mycat-server-1.6.5-release-20180122220033-linux.tar.gz
- 解压即安装mycat
tar -zxf Mycat-server-1.6.5-release-20180122220033-linux.tar.gz -C /app/
3.建立软件连接
#格式 ln -s /安装目录/bin/mycat /etc/init.d/mycat
ln -s /app/mycat/bin/mycat /etc/init.d/mycat
- 修改conf/wrapper.conf文件,wrapper.java.command设置为java的路径
#
vim /app/mycat/conf/wrapper.conf
/app/jdk1.8.0_144/bin/java
5. 启动mycat
service mycat start
- 加入开机启动
chkconfig --add mycat