1、root mycat/ -Rrootnode24 src#rpm -ivh jre-8u51-linux-x64.rpm Preparing. # 100% 1:jre1.8.0_51 # 100%Unpacking JAR files. rt.jar. jsse.jar. charsets.jar. localedata.jar. jfxrt.jar. plugin.jar. javaws.jar. Deploy.jar.rootnode24 src#java -versionjava version 1.8.0_51Java(TM) SE Runtime Environment (buil
2、d 1.8.0_51-b16)Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)此处注意java版本不得低于1.6至此Mycat安装就算完成了2.mysql环境以及Mycat配置我的环境如下 10.1.166.22:mysql dn1 10.1.166.23 mysql dn2 10.1.166.24 mysql dn3 10.1.166.25 mysql dn4 10.1.166.26 mysql dn5配置hosts文件rootnode22 src#cat /etc/hosts127.0.0.1 localhost
3、 localhost.localdomain localhost4 localhost4.localdomain4:1 localhost localhost.localdomain localhost6 localhost6.localdomain610.1.166.22 node2210.1.166.22 dn110.1.166.23 dn210.1.166.24 dn310.1.166.25 dn410.1.166.26 dn5传到各个机器 for i in 10.1.166.22 10.1.166.23 10.1.166.24 10.1.166.25 10.1.166.26;do sc
4、p /etc/hosts $i:/etc;done为你的mycat用户设置个密码rootnode24 src#passwd mycatChanging password for user mycat.New password: BAD PASSWORD: it is WAY too short is too simpleRetype new password:passwd: all authentication tokens updated successfully.原始mycat测试配置rootnode24 conf#./logs/wrapper.log rootnode24 conf#ro
5、otnode24 conf#pwd/usr/local/mycat/confrootnode24 conf#./bin/mycat startStarting Mycat-server.报错处理方案rootnode24 conf#cat ./logs/wrapper.log STATUS | wrapper | 2015/09/18 01:27:36 | - Wrapper Started as Daemon36 | Launching a JVM.INFO | jvm 1 | 2015/09/18 01:36 | Java HotSpot(TM) 64-Bit Server VM warni
6、ng: ignoring option MaxPermSize=64M; support was removed in 8.0ERROR | wrapper | 2015/09/18 01:36 | JVM exited while loading the application.36 | Error: Exception thrown by the agent : .MalformedURLException: Local host name unknown: .UnknownHostException: node24: unknown error41 | Launching a JVM.I
7、NFO | jvm 2 | 2015/09/18 01:41 | Java HotSpot(TM) 64-Bit Server VM warning:41 | Error:41 | JVM exited while loading the application.45 | Launching a JVM.INFO | jvm 3 | 2015/09/18 01:45 | Java HotSpot(TM) 64-Bit Server VM warning:45 | JVM exited while loading the application.45 | Error:50 | Launching
8、 a JVM.INFO | jvm 4 | 2015/09/18 01:50 | Java HotSpot(TM) 64-Bit Server VM warning:50 | Error:50 | JVM exited while loading the application.54 | Launching a JVM.INFO | jvm 5 | 2015/09/18 01:54 | Java HotSpot(TM) 64-Bit Server VM warning:54 | JVM exited while loading the application.54 | Error:FATAL | wrapper | 2015/09/18 01:54 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.54 | There may be a configuration problem: please check the logs.55 | - Wrapper Stopped发现有报错 所以要先启动一下原始的连原始的都报错那还配置没有意义36 | JVM exited while loading the applicati
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1