nacos1.4.1启动不了 报错:Unable to start web server; nested exception is…

作者 : admin 本文共876个字,预计阅读时间需要3分钟 发布时间: 2024-03-26 共1人阅读

第一段:java.io.IOException: java.lang.IllegalArgumentException: db.num is null

第二段:org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

最后一段:Caused by: java.lang.RuntimeException: [db-load-error]load jdbc.properties error

日志%home%/logs/nacos.log显示报错

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

数据库问题
1.首先修改conf下的application.properties配置文件:配置为mysql。
nacos1.4.1启动不了 报错:Unable to start web server; nested exception is…插图2.Nocas默认,set MODE=“cluster”,首先修改cluster为set MODE=“standalone”
(这个文件是bin下的startup.cmd,可以右键用记事本打开修改)
nacos1.4.1启动不了 报错:Unable to start web server; nested exception is…插图(1)
3.将conf/nacos-mysql.sql文件里的sql脚本执行到本机数据库的nacos库中
nacos1.4.1启动不了 报错:Unable to start web server; nested exception is…插图(2)
4./conf/application.properties里修改配置:
db.user=填写自己数据库的名字!!!
db.password=填写自己数据库的密码!!!

5.最后访问http://localhost:8848/nacos
默认密码是nacos
密码nacos

登录成功~~~~
nacos1.4.1启动不了 报错:Unable to start web server; nested exception is…插图(3)

本站无任何商业行为
个人在线分享 » nacos1.4.1启动不了 报错:Unable to start web server; nested exception is…
E-->