当前位置:   article > 正文

nacos初次安装使用报错:Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8_nacos please set the java_home variable in your en

nacos please set the java_home variable in your environment, we need java(x6

报错信息:

  1. which: no javac in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64/bin)
  2. readlink: missing operand
  3. Try 'readlink --help' for more information.
  4. dirname: missing operand
  5. Try 'dirname --help' for more information.
  6. ERROR: Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better! !!

原因分析:

1.没有配置java的环境变量

2.java环境变量的配置方法不是安装JAVA_HOME的方式

3.nacos这边是java_home下的bin目录,当时安装jdk使用的yum命令安装的,自动带上jre目录。所以修改了java_home的路径到jre即可。 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/187476
推荐阅读
相关标签
  

闽ICP备14008679号