Nacos startup is divided into stand-alone or cluster. When you start in cluster mode but do not configure the data source that the cluster depends on, the error db.num is null will be reported
Solution
The operation of this paper is based on Windows environment, similar to Linux
Mode 1: single machine mode startup
startup.cmd -m standalone
Start as shown in the figure below:
standalone: independent
at this time, Nacos starts in stand-alone mode
Mode 2: start in cluster mode and configure the data source
Use the conf/nacos-mysql.sql file to initialize the database, and modify the conf/application.properties file to add MySQL support
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://localhost:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
db.user=root
db.password=1234
All the above configurations exist in the original configuration. You only need to modify the parameter value
after the modification is successful, start Nacos
startup.bat
Read More:
- [Solved] Nacos2.1.1 Startup Error: nacos is starting with standalone
- [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
- How to Solve DB2 uses Limit Error
- How to Solve svn error: WC DB
- [Solved] MindSpore Error: “GeneratorDataset’s num_workers=8, this value is …”
- How to Solve Azkaban Error Chung during uploading files to DB
- How to Solve null/hadoopbinary/wintils.exe Error
- Nacos Error: server is DOWN now, please try again later! [How to Solve]
- [Solved] Nacos Startup Error: [db-load-error]load jdbc.properties error
- How to Solve Logstash error: failed to execute action
- TypeError: db.collection is not a function
- How to Solve VMware Workstation Error: The VMware Authorization Service is not running.
- How to Solve Error: “initializer element is not constant”
- How to Solve HBase error: region is not online
- How to Solve Sqlyog error 2058
- Error: env [NODE_ENV] is not set (How to Solve)
- How to Solve Cocos creator label text is too many error
- How to Solve Application failed to start error
- How to Solve jQuery error: Uncaught ReferenceError: $ is not defined
- How to Solve Error: homebrew-core is a shallow clone.