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)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)
	at 

此处异常,是应为Nacos 启动分单击启动和集群配置两种,因测试环境部署的是单击,启动时 在 startup.sh 后面加上 -m standalone ,就OK了。

正确姿势如下:

sh > startup.sh -m standalone

猜你喜欢

转载自blog.csdn.net/pengain/article/details/114592834