开发者社区 问答 正文

nacos 无法启动

在win10下双击 startup.cmd 运行失败。在centos7下执行 sh startup.sh 后出现同样报错信息;nacos1.3.1则正常

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:157)

展开
收起
一人吃饱,全家不饿 2021-02-01 23:02:05 3535 分享 版权
来自: 阿里开源
1 条回答
写回答
取消 提交回答
  • 如果是非单机模式启动 默认使用mysql作为外置数据库,此时需要到conf/application.properties内添加mysql的相关配置参数。否则就会去找jdbc.properties,两者都没有,那相当于依赖没有启动成功,自然就启动不起来。

    解决方法是启动时加上 -p embedded 使用derby + jraft的内嵌数据库,或者-m standalone启动单机模式

    2021-02-01 23:02:13
    赞同 展开评论
问答标签:
问答地址: