天天看點

成功解決 Unable to start web server; Unable to start embedded Tomcat問題起因解決方法看這裡

目錄

問題起因

解決方法

看這裡

問題起因

本地測試,在啟動nacos時報錯(日志檔案在log檔案夾下的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

因為是沒有将nacso的叢集模式改為單機模式。

點選cmd閃退,一般是因為啟動檔案中包含了中文,去掉中文重新試下。

解決方法

叢集 用cluster
rem set MODE="cluster"
單機 用standalone
set MODE="standalone"
           

 将叢集模式改為單機模式即可在本地正常啟動。

不要附帶多餘的空格,文中不能有中文

成功解決 Unable to start web server; Unable to start embedded Tomcat問題起因解決方法看這裡

看這裡

如果對你有幫助,記得點贊留言哦~