配置java的时候要配置JAVA_HOME 不能直接在path中用jdk的bin路径,不然会报错,虽然你能够正常使用java,但还是会报错
这是报错信息
//bin/java -Djava.ext.dirs=//jre/lib/ext://lib/ext -server -Xms2g -Xmx2g -Xmn1g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/e/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Dnacos.member.list= -Xloggc:/e/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dloader.path=/e/nacos/plugins,/e/nacos/plugins/health,/e/nacos/plugins/cmdb,/e/nacos/plugins/selector -Dnacos.home=/e/nacos -jar /e/nacos/target/nacos-server.jar --spring.config.additional-location=file:/e/nacos/conf/ --logging.config=/e/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
nohup: ignoring input
nohup: failed to run command '//bin/java': No such file or directory