zookeeper

moyuanyuan 发布于 2018/10/26 12:00
阅读 76
收藏 0

配置的jdk环境没问题,javac运行正常

[root@192 bin]# javac
Usage: javac <options> <source files>
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
  -g:{lines,vars,source}     Generate only some debugging info
  -nowarn                    Generate no warnings
  -verbose                   Output messages about what the compiler is doing
  -deprecation               Output source locations where deprecated APIs are used
  -classpath <path>          Specify where to find user class files and annotation processors
  -cp <path>                 Specify where to find user class files and annotation processors
  -sourcepath <path>         Specify where to find input source files
但是在启动zookeeper时出现启动不起来

[root@192 bin]# ./zkServer.sh start
ZooKeeper JMX enabled by default
Using config: /home/zookeeper/zookeeper-3.4.10/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[root@192 bin]# ./zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /home/zookeeper/zookeeper-3.4.10/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.

查看启动日志得到下面报错

nohup: failed to run command `/usr/java/jdk1.8.0_91/bin/java': No such file or directory

----------- 求大牛解答?????

加载中
0
Gannalyo
Gannalyo

执行命令:which java  看看java安装路径

0
曾泽浩
JAVA_HOME目录配置了吗?
0
曾泽浩
可以看下https://www.jianshu.com/p/b9cd71ff8a59
返回顶部
顶部