Environment: centos7.3, JDK 8, Nacos 2.0.3.
Use the systemctl start Nacos
command to start and report an error. The error information is as follows.
Use the java - version
command to check that the Java environment variable is effective. You can use the Java command to eliminate the problem of environment variable configuration.
The problem should be in the Nacos startup script. The specific configuration file is shown in the figure below.
The configuration in the red box is a new line I added, that is, I manually specified the JDK used by Nacos to run, and the original detection Java of Nacos_ The configuration of home cannot get Java correctly_Home information, so it’s good to specify it manually. Add Java in the startup. Sh
file_ Change the home variable to your local JDK installation location, then save and exit, and restart the Nacos service.
Use the systemctl start Nacos
command to restart the service successfully. Use the systemctl status Nacos
command to check that Nacos is running normally. The problem is solved.
Read More:
- [Solved] nacos Startup Error: Please set the JAVA_HOME variable in your environment
- [Solved] Nacos1.3.2 Startup Error: Unable to start embedded Tomcat
- [Solved] nacos Error: com.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance
- [Solved] nacos Startup Error: Unable to start embedded Tomcat
- Java error: unable to find or load main class (package name in source file)
- [Solved] Hongmeng compiles error: Unable to find the java component with apiVersion 4.
- [Solved] Java XXX: unable to find topic engine in module path
- [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] eureka Startup Error: Unable to start web … nested exception is org.springframework.boot.web.server.WebS
- [Solved] eureka Startup Error: Unable to start web … nested exception is org.springframework.boot.web.server.WebS
- [Solved] Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerExcepti
- [Solved] Maven Project Packaging Error: Unable to find main class
- How to Solve nacos Startup Error and Connect to MYSQL
- Executing Maven command error: Java_HOME is not defined correctly executing maven
- [Solved] error Unable to find the ncurses libraries
- [Solved] JAVA Error: Error occurred during initialization of boot layer java.lang.module.FindException
- [Solved] Hadoop Error: HADOOP_HOME and hadoop.home.dir are unset.
- nc ecplise Switch home[UNK] Error: java. lang.InternalError: Error in EVP_CipherFinal_ex.
- Java.sql.sqlexception: unable to read more data from socket