准备环境

系统环境: windows
nacos: 2.0.0-BETA

错误信息

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

配置文件

服务配置文件application.properties,启用mysql数据库

#*************** Spring Boot Related Configurations ***************#
### Default web context path:
server.servlet.contextPath=/nacos
### Default web server port:
server.port=8848#*************** Network Related Configurations ***************#
### If prefer hostname over ip for Nacos server addresses in cluster.conf:
# nacos.inetutils.prefer-hostname-over-ip=false### Specify local server's IP:
# nacos.inetutils.ip-address=#*************** Config Module Related Configurations ***************#
### If use MySQL as datasource:
spring.datasource.platform=mysql### Count of DB:
db.num=1### Connect URL of DB:
db.url.0=jdbc:mysql://192.168.31.10:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user.0=root
db.password.0=root### Connection pool configuration: hikariCP
db.pool.config.connectionTimeout=30000
db.pool.config.validationTimeout=10000
db.pool.config.maximumPoolSize=20
db.pool.config.minimumIdle=2

由于properties中仅启用了mysql数据库,没有进行主从配置,所以startup脚本需要修改默认的主从模式改为单机模式,不然就会遇到上述启动异常!

将上图中cluster改为standalone即可。

~ _ ~

emmm 学习中遇到的问题,在此记录分享一下。

nacos启动失败:org.springframework.boot.web.server.WebServerExceptio相关推荐

  1. 搭建nacos集群启动时,报错Unable to start web server; nested exception is org.springframework.boot.web.server

    最近在学习springcloud阿里巴巴的使用,单机使用nacos启动时没有问题,修改了配置之后启动报错,如下 org.springframework.context.ApplicationConte ...

  2. Caused by: org.springframework.boot.web.server.PortInUseException: Port 8081 is already in use 端口占用

    Caused by: org.springframework.boot.web.server.PortInUseException: Port 8081 is already in use 解决引用: ...

  3. nacos启动失败问题解决

    数据库连接问题 此报错是数据库配置问题,检查数据库地址.端口.数据库.账号.密码是否正确,同时确保数据库允许远程连接. org.springframework.beans.factory.Unsati ...

  4. mysql安装失败,mysql安装后启动失败,Configuration of MySQL Server 5.7 is taking longer than expected.

    mysql 安装到一半失败了? 安装到启动server start失败? Configuration of MySQL Server 5.7 is taking longer than expecte ...

  5. mysql服务启动失败 Starting MySQL. ERROR! The server quit without updating PID file

    [问题描述] 使用 service mysqld start 启动mysql服务失败,提示 Starting MySQL. ERROR! The server quit without updatin ...

  6. nacos启动失败_Nacos 启动失败记录

    1. 启动过程描述 在阿里云服务器上安装了Nacos 1.3.1,同时的话jdk 1.8 以及maven 3.6.3已经配置安装好了,那么按照官网所说,运行命令: sh startup.sh -m s ...

  7. 配置了单机启动(standalone),也配置了数据库,但是Nacos依然启动失败

    问题发现: 在今天学习Nacos时,我下载安装解压好了Nacos包,我下载的是目前(2023.3.27)的最新版本的 Nacos 2.2.1,但是在启动时,不管是用官方的命令"startup ...

  8. Nacos 启动报错 Unable to start embedded Tomcat

    问题描述:Nacos官网下载下来的Nacos服务端(nacos-server-2.0.2.zip)在本地(Windows)环境下进行解压后,进入到其bin目录下面,双击"startup.cm ...

  9. nacos启动报错解决方法

    报错一 Unable to start web server: nested exception is org.springframework.boot.web.server.WebServerExc ...

最新文章

  1. 危害企业IT系统最严重的五个安全威胁
  2. 深度机器学习中的batch的大小对学习效果有何影响?
  3. matlab 三维模型怎么导入ansys,Ansys怎么导入模型?Ansys导入模型的方法
  4. Windows系统CMD下常用命令
  5. Centos 安装配置 vsftpd
  6. 她偏爱雏菊一样的淡黄色_为什么开源项目(非常)偏爱新用户,以及您可以采取什么措施...
  7. Java Lambda 表达式快速学习
  8. unity5, Configurable Joint: Anchor, Connected Anchor, Auto Configure Connected Anchor
  9. 【小程序-开篇】国内IT技术圈的技能树貌似点歪了?
  10. 钉钉群机器人关键词自动回复_自动化运维平台Spug测试
  11. 大神教你用Python破解压缩文件zip密码
  12. python 统计微信群未接龙
  13. fs.readFileSync 引入路径错误
  14. 除了中国知网和谷歌文学还有哪些好的有权威的资源站?
  15. Unity Shader 表面着色器边缘光(Rim Lighting)二
  16. C语言-03-基本数据类型及输入输出函数
  17. AMD收购Xilinx,Intel收购Altera,FPGA将何去何从?
  18. 分布式系统原理与设计
  19. 达梦数据库(达梦8)DCA认证考试
  20. mysql技术之innodb存储引擎

热门文章

  1. 【无码专区11】异或2(结论 / 推式子 + 哈希hash + 大整数高精度 加减乘除重载考察)
  2. P2403 [SDOI2010]所驼门王的宝藏(强连通分量)(拓扑排序)
  3. YbtOJ#532-往事之树【广义SAM,线段树合并】
  4. P3273-[SCOI2011]棘手的操作【线段树,并查集】
  5. NOI.AC-random【期望概率,统计】
  6. Comet OJ(Contest #8)-C符文能量【dp】
  7. 【DP】数字游戏(jzoj 2131)
  8. 漫画:什么是计数排序
  9. Java集合之EnumSet
  10. Java中的内存泄露的几种可能