Nacos-2.×.× version, stand-alone startup error: Unable to start embedded Tomcat solution

I think the one you downloaded should be a 2.×× version. The ones you searched on the Internet are all for you to run on a single machine, configure the sql environment, and let you see the log a little bit. . . But I tried for more than half an hour and still can't solve it (I will study the configuration of version 2.×× if I have time later)

Updated (see update section)! ! !

As a result, I downloaded a 1.45 version and changed it to a stand-alone mode and it ran directly and successfully. .

Attach a screenshot of the successful operation of version 1.45:

at last,

Hope the article is helpful to you

-------------------------------------------------- --------Update dividing line--------------------------------------- -----------------

Regarding the problem that the 2.×× version cannot be started, I just found out the reason (there will be a solution later):

 For details, please see: About the Nacos default token.secret.key and server.identity risk description and solution announcement

(The previous error log actually suggested this, but I didn't pay much attention to it before, and I didn't know the solution at the time)

Attaching my error log:

(If your error is not this, unfortunately, this article may not help you, but you can quickly find the problem by checking the log)

The solution is to configure the authentication according to the document provided by the last URL of the error report (

Configuration document: Authorization

The following is the basic configuration that allows the program to start normally :

1. Enable authentication (this seems to be closed, otherwise you need to configure things in the idea to run the program)

 2. Define the secret key for generating jwt (I use the default secret key here, please read the official document if you want to use it normally )

 3. Turn on the service identification function

After the configuration is complete, it can be started normally:

 at last,

        still,

                Hope the article is helpful to you!

Acho que você gosta

Origin blog.csdn.net/m0_63930592/article/details/129717348
Recomendado
Clasificación