场景:
个人自研项目需要用到云服务器,奈何预算有限,云服务器的镜像过多,内存不够了。
docker stats nacos看了下,就你占据内存最大,用本地启用吧。
结果,下载本地的nacos报错,经过排查,是以下原因报错;
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:156)
解决步骤:
1、修改conf下的配置文件,把数据库配置上;


2

面对有限预算和大量云服务器镜像,本文详述如何通过调整配置、添加数据库、单节点启动和修复WebServer错误,成功在本地启用Nacos。重点在于解决Spring Boot中启动Tomcat失败的问题。
最低0.47元/天 解锁文章
4209





