Nacos is registered as a service in centos7, but it cannot be started
report errors
Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better!
reason
The java
and javac
of the installed JDK are not in the nacos
startup script startup.sh
(mine is under /opt/java/jdk1.8.0_333/
)
terms of settlement
Add Java path to startup.sh
[ ! -e "$JAVA_HOME/bin/java" ] && JAVA_HOME=/opt/java/jdk1.8.0_333
Restart the service successfully
Read More:
- Nacos boot error, unable to find Java_HOME [How to Solve]
- [Solved] Error installing MVN: Java_Home is set to an invalid directory
- [Solved] nacos Startup Error: nested exception is java.lang.RuntimeException: java.lang.RuntimeException: [db-load-error
- [Solved] nacos Error: com.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance
- [Solved] Nacos1.3.2 Startup Error: Unable to start embedded Tomcat
- How to Solve nacos Startup Error and Connect to MYSQL
- [Solved] Nacos Startup Error: Error creating bean with name ‘authFilter‘
- [Solved] nacos Startup Error: Unable to start embedded Tomcat
- [Solved] Nacos Serve Local Startup Error: Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCre
- [Solved] IDEA springboot Startup Error: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path
- nc ecplise Switch home[UNK] Error: java. lang.InternalError: Error in EVP_CipherFinal_ex.
- [Solved] Default native-compiler executable ‘cl.exe‘ not found via environment variable PATH
- kafka Environment Build and Startup Error: ERROR [KafkaServer id=1] Fatal error during KafkaServer startup. Prepare to shutdown
- Executing Maven command error: Java_HOME is not defined correctly executing maven
- [Solved] java.sql.SQLException: Unknown system variable cache query size
- [Solved] IDEA Startup Error: java: Internal error in the mapping processor
- [Solved] JAVA OpenCV Startup Error: java.lang.UnsatisfiedLinkError
- [Solved] Hadoop Error: HADOOP_HOME and hadoop.home.dir are unset.
- [Solved] Initialization of anonymous inner class member variable causes java.lang.stackoverflowerror
- Spring cloud remote connect Nacos error [How to Solve]