GVKun编程网logo

mycat 启动报 Unable to start JVM: No such file or directory (2)【转】(mycat启动命令)

7

此处将为大家介绍关于mycat启动报UnabletostartJVM:Nosuchfileordirectory(2)【转】的详细内容,并且为您解答有关mycat启动命令的相关问题,此外,我们还将为您

此处将为大家介绍关于mycat 启动报 Unable to start JVM: No such file or directory (2)【转】的详细内容,并且为您解答有关mycat启动命令的相关问题,此外,我们还将为您介绍关于"libcudart.so.8.0 cannot open shared object file: No such file or directory"、bash: history: : cannot create: No such file or directory 问题处理!、cache.h:40:18: fatal error: zlib.h: No such file or directory、CentOS 7.x 关闭 / 开启防火墙出现 Unit iptables.service failed to load: No such file or directory 问题解决的有用信息。

本文目录一览:

mycat 启动报 Unable to start JVM: No such file or directory (2)【转】(mycat启动命令)

mycat 启动报 Unable to start JVM: No such file or directory (2)【转】(mycat启动命令)

mycat 启动失败,查看日志 /mycat/logs/wrapper.log 发现如下信息

     1  STATUS | wrapper  | 2017/11/22 16:15:17 | --> Wrapper Started as Daemon
     2  STATUS | wrapper  | 2017/11/22 16:15:17 | Launching a JVM...
     3  ERROR  | wrapper  | 2017/11/22 16:15:17 | Unable to start JVM: No such file or directory (2)
     4  ERROR  | wrapper  | 2017/11/22 16:15:17 | JVM exited while loading the application.
     5  STATUS | wrapper  | 2017/11/22 16:15:22 | Launching a JVM...
     6  ERROR  | wrapper  | 2017/11/22 16:15:22 | Unable to start JVM: No such file or directory (2)
     7  ERROR  | wrapper  | 2017/11/22 16:15:22 | JVM exited while loading the application.
     8  STATUS | wrapper  | 2017/11/22 16:15:26 | Launching a JVM...
     9  ERROR  | wrapper  | 2017/11/22 16:15:26 | Unable to start JVM: No such file or directory (2)
    10  ERROR  | wrapper  | 2017/11/22 16:15:26 | JVM exited while loading the application.
    11  STATUS | wrapper  | 2017/11/22 16:15:30 | Launching a JVM...
    12  ERROR  | wrapper  | 2017/11/22 16:15:30 | Unable to start JVM: No such file or directory (2)
    13  ERROR  | wrapper  | 2017/11/22 16:15:30 | JVM exited while loading the application.
    14  STATUS | wrapper  | 2017/11/22 16:15:34 | Launching a JVM...
    15  ERROR  | wrapper  | 2017/11/22 16:15:34 | Unable to start JVM: No such file or directory (2)
    16  ERROR  | wrapper  | 2017/11/22 16:15:34 | JVM exited while loading the application.
    17  FATAL  | wrapper  | 2017/11/22 16:15:34 | There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
    18  FATAL  | wrapper  | 2017/11/22 16:15:34 |   There may be a configuration problem: please check the logs.
    19  STATUS | wrapper  | 2017/11/22 16:15:34 | <-- Wrapper Stopped

解决方法:

原因可能是 JVM 参数没有配置或者配置错误 

处理方案: 
在 mycat/conf/wrapper.conf 下增加:
wrapper.java.command=java 安装目录 /bin/java

例如:

wrapper.java.command=/home/hadoop/software/jdk1.8.0_181/bin/java

参考:https://blog.csdn.net/leisure_life/article/details/78612256?locationNum=3&fps=1

 

"libcudart.so.8.0 cannot open shared object file: No such file or directory"

解决办法是将一些文件复制到 /usr/local/lib 文件夹下:

#注意自己 CUDA 的版本号!

sudo cp /usr/local/cuda-8.0/lib64/libcudart.so.8.0 /usr/local/lib/libcudart.so.8.0 && sudo ldconfig

sudo cp /usr/local/cuda-8.0/lib64/libcublas.so.8.0 /usr/local/lib/libcublas.so.8.0 && sudo ldconfig

sudo cp /usr/local/cuda-8.0/lib64/libcurand.so.8.0 /usr/local/lib/libcurand.so.8.0 && sudo ldconfig

 

或者

sudo ldconfig /usr/local/cuda/lib64  

bash: history: : cannot create: No such file or directory 问题处理!

bash: history: : cannot create: No such file or directory 问题处理!

问题如图

root@VM_0_13_centos /]# /etc/init.d/metasploit stop
worker is stopped
Exiting!
metasploit is stopped
prosvc is stopped
nginx is stopped
/opt/metasploit/postgresql/scripts/ctl.sh : postgresql stopped
bash: history: : cannot create: No such file or directory
[root@VM_0_13_centos /]# cd /root/
bash: history: : cannot create: No such file or directory
[root@VM_0_13_centos root]# ls
bash: history: : cannot create: No such file or directory

无论我在命令行输入什么命令都会提示

bash: history: : cannot create: No such file or directory

问题解决

[root@VM_0_13_centos ~]# echo $HISTROTY

bash: history: : cannot create: No such file or directory

设置变量

[root@VM_0_13_centos ~]# cat .bash_profile   #打开
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
HOME=/root
HISTFILE=/root/.bash_history  #添加
export PATH

[root@VM_0_13_centos ~]# source .bash_profile   #生效



#一切正常
[root@VM_0_13_centos ~]# ls  
[root@VM_0_13_centos ~]# cat .bash_profile 

 

 

 

 

cache.h:40:18: fatal error: zlib.h: No such file or directory

cache.h:40:18: fatal error: zlib.h: No such file or directory

 

1、问题安装git 过程中 make出现问题

cache.h:40:18: Fatal error: zlib.h: No such file or directory
 #include <zlib.h>

 

 

2、解决方法

[root@rhelpc1 git-2.9.5]# yum install zlib zlib-devel -y

 

3、测试make

[root@rhelpc1 git-2.9.5]# make

问题解决。

 

参考:https://blog.csdn.net/konga/article/details/41383543

 

CentOS 7.x 关闭 / 开启防火墙出现 Unit iptables.service failed to load: No such file or directory 问题解决

CentOS 7.x 关闭 / 开启防火墙出现 Unit iptables.service failed to load: No such file or directory 问题解决

一直用 CentOS 6.x,今天用 CentOS7.3 版本时,防火墙配置后执行 service iptables start 出现”Failed to restart iptables.service: Unit iptables.service failed to load: No such file or directory.” 错误,

错误信息如下:

在 CentOS 7 或 RHEL 7 或 Fedora 中防火墙由 firewalld 来管理,当然你可以还原传统的管理方式。或则使用新的命令进行管理。

当然我们可以还原传统的管理方式:

1、执行以下命令

  systemctl stop firewalld
  systemctl mask firewalld

2、安装 iptables-services

  yum install iptables-services

3、设置开机启动

  systemctl enable iptables

4、iptables 启动 / 停止 / 重启

  systemctl start iptables
  systemctl stop iptables
  systemctl restart iptables
  systemctl reload iptables

5、保存设置

  service iptables save

防火墙开放某个端口,在 /etc/sysconfig/iptables 文件中加入以下内容

  -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

然后执行以下命令生效

  /usr/libexec/iptables/iptables.init save

 

我们今天的关于mycat 启动报 Unable to start JVM: No such file or directory (2)【转】mycat启动命令的分享就到这里,谢谢您的阅读,如果想了解更多关于"libcudart.so.8.0 cannot open shared object file: No such file or directory"、bash: history: : cannot create: No such file or directory 问题处理!、cache.h:40:18: fatal error: zlib.h: No such file or directory、CentOS 7.x 关闭 / 开启防火墙出现 Unit iptables.service failed to load: No such file or directory 问题解决的相关信息,可以在本站进行搜索。

本文标签: