我用./mycat start 命令启动,结果状态一直显示 mycat is not runing
启动不了,日志如下:
Running Mycat-server...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=64M; support was removed in 8.0
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 |
jvm 1 | WrapperSimpleApp: Encountered an error running main: java.lang.ExceptionInInitializerError
jvm 1 | java.lang.ExceptionInInitializerError
jvm 1 | at io.mycat.MycatStartup.main(MycatStartup.java:53)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jvm 1 | at java.lang.reflect.Method.invoke(Method.java:498)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1 | at java.lang.Thread.run(Thread.java:748)
jvm 1 | Caused by: io.mycat.config.util.ConfigException: writeHost 192.168.4.72 duplicated!
jvm 1 | at io.mycat.config.loader.xml.XMLSchemaLoader.loadDataHosts(XMLSchemaLoader.java:782)
jvm 1 | at io.mycat.config.loader.xml.XMLSchemaLoader.load(XMLSchemaLoader.java:118)
jvm 1 | at io.mycat.config.loader.xml.XMLSchemaLoader.<init>(XMLSchemaLoader.java:83)
jvm 1 | at io.mycat.config.loader.xml.XMLSchemaLoader.<init>(XMLSchemaLoader.java:87)
jvm 1 | at io.mycat.config.ConfigInitializer.<init>(ConfigInitializer.java:76)
jvm 1 | at io.mycat.config.MycatConfig.<init>(MycatConfig.java:72)
jvm 1 | at io.mycat.MycatServer.<init>(MycatServer.java:170)
jvm 1 | at io.mycat.MycatServer.<clinit>(MycatServer.java:116)
jvm 1 | ... 7 more
wrapper | <-- Wrapper Stopped
Caused by: io.mycat.config.util.ConfigException: writeHost 192.168.4.72 duplicated!
检查一下你的schema.xml配置文件