Mycat启动报错“wrapper | Unable to start JVM: No such file or directory “

Posted 二木成林

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mycat启动报错“wrapper | Unable to start JVM: No such file or directory “相关的知识,希望对你有一定的参考价值。

异常

在Linux中执行./mycat consloe命令启动mycat报错如下:

[root@localhost bin]# ./mycat console
Running Mycat-server...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 1    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 2    | wrapper  | Unable to start JVM: No such file or directory (2)

wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 3    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 4    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 5    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
wrapper  |   There may be a configuration problem: please check the logs.
wrapper  | <-- Wrapper Stopped

原因

没有配置JVM。

解决

先看系统中是否安装JDK,如果没有安装请先安装JDK,安装教程请参考:在Linux中安装JDK8

在/bin/wrapper.conf文件中添加如下内容,如果没有该文件,则创建该文件:

wrapper.java.command=java的安装目录/bin/java

本例中如下:

再执行./mycat console命令就会启动mycat成功

以上是关于Mycat启动报错“wrapper | Unable to start JVM: No such file or directory “的主要内容,如果未能解决你的问题,请参考以下文章

mycat启动报错UnknownHostException(Temporary failure in name resolution)解决方法

mycat启动服务,后台日志报错Bit Server VM warning: ignoring option MaxPermSize

mycat启动失败

mycat这个报错信息怎么解决

使用mycat配置分库失败查看日志报错“NoRouteToHostException: 没有到主机的路由“

mycat这个报错信息怎么解决