Nacos start report db.num is null and Unable to start embedded Tomcat

Recently, I saw others playing nacos, and I started to play it. However, I didn't get a good job. I failed to download github many times. Later, I downloaded it successfully with Thunder. I encountered two small pits when I started it. Record it.

The first problem: db.num is null
database problem.
Insert picture description here
Solution:

Step 1: Create a new library in local mysql: nacos, character set: utf8, collation: utf8_general_ci

Step 2: The sql script in the nacos/conf/nacos-mysql.sql file is executed to the nacos library of the local database

Step 3: Modify the configuration in nacos/conf/application.properties. The
Insert picture description here
username and password are modified to the local mysql new library: the username and password of nacos.
Insert picture description here

The second question: Unable to start embedded Tomcat
startup file configuration problem
Insert picture description here
Solution:

Step 1: Modify the directory nacos/bin/startup.cmd startup file.
Insert picture description here
Modify it as follows:
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_25288617/article/details/110184820