Project Scene:
Developing a microservice project, requires the service registration and configuration center. The development and application of Nacos technology. The native OS is Windows11, Nacos version is 2.1.1 installed on Drive D.
Problem description
Nacos start:
Double-click startup.cmd in the bin directory and it will flash back, that is, the startup failed;
Use the command to start: startup.cmd -m standalone, An error message appears
D:\Program Files (x86)\nacos-server-2.1.1\nacos\bin>startup.cmd -m standalone
"nacos is starting with standalone"
There should be no \nacos-server-2.1.1\nacos"\logs\java_heapdump.hprof -XX:-UseLargePages" at this point.
Solution:
The first solution: unzip Nacos to a directory does not contain non-English and numbers, Command line started successfully
Second solution: Open startup with editor, Comment out the content shown below:
rem if %MODE% == "cluster" (
rem echo "nacos is starting with cluster"
rem if %EMBEDDED_STORAGE% == "embedded" (
rem set "NACOS_OPTS=-DembeddedStorage=true"
rem )
rem set "NACOS_JVM_OPTS=-server -Xms2g -Xmx2g -Xmn1g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX: HeapDumpPath=%BASE_DIR%\logs\java_heapdump.hprof -XX:-UseLargePages"
rem )
Not sure if this solution will cause other problems, but it starts fine
Read More:
- How to Solve “Error db.num is null” when starting Nacos
- [Solved] Nacos Start Error: failed to req API:127.0.0.1:8848/nacos/v1/ns/service/list. code:503 msg: server is DOWN now
- [Solved] nacos Startup Error: Error creating bean with name ‘authFilterRegistration‘ defined in class path resource
- [Solved] Nacos Cluster startup error: error=‘Cannot allocate memory‘ (errno=12)
- Nacos Error: server is DOWN now, please try again later! [How to Solve]
- [Solved] Nacos Startup Error: [db-load-error]load jdbc.properties error
- Nacos Click service offline error: caused: errCode: 500, errmsg: do metadata operation failed;
- [Solved] failed to req API:localhost:8848/nacos/v1/ns/instance. code:500 msg: java.net.ConnectException
- nacos Start Error: Error creating bean with name ‘grpcClusterServer’
- [Solved] Springboot Project Startup Error: Error starting ApplicationContext
- [Solved] The version of springcloud must support the current version of springboot, otherwise the startup project will report an error: error starting ApplicationContext
- [Solved] Mycat Startup Error: ERROR Startup failed: Timed out waiting for a signal from the JVM
- System Startup and Display: [drm:drm_edid_block_valid] *ERROR* EDID checksum is invalid
- Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen is reported when docker port mapping or starting the container
- [Solved] bin/hive Startup Error: Operation category READ is not supported in state standby
- [Solved] kafka Startup Error: Fatal error during KafkaServer startup
- Error starting ApplicationContext. To display the auto-configuration report re-run your application
- [Solved] Springboot Project Startup Error: Error running XXX. Command line is too long.
- [Solved] JIRA startup error: JIRA startup failed, JIRA has been locked.
- When starting Vue project: cannot find module ‘webpack cli / bin / config yargs’ error resolution