官网参考
https://nacos.io/zh-cn/docs/2.0.0-upgrading.html
安装

关闭开启服务器
启动Nacos2.0
使用nacos目录下 nacos/bin/startup.sh 启动nacos2.0,
sh shutdown.sh
1. 启动之后IP访问
http://192.168.10.100:8848/nacos/#/login
.关闭双写
curl -X PUT 'localhost:8848/nacos/v1/ns/operator/switches?entry=doubleWriteEnabled&value=false'
关闭后可以从logs/naming-server.log日志中观察到Disable Double write, stop and clean v1.x cache and features字样。说明关闭双写。
注意,关闭双写后无法在进行平滑降级,请先确认关闭前集群正确运行。
替换文件
、下载并解压缩nacos-server-2.0.2.tar.gz,将其下的bin,conf,target目录覆盖原Nacos1.X的安装目录下。
修改配置
行修改nacos/bin/startup.sh中的JVM参数,
在这里插入图片描述

数据库或其他相关参数
conf/application.prpperties中数据库或其他相关参数

集群(忽略)
conf/cluster.conf中的集群列表。
总结错误
- org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat


命令:wget https://download.oracle.com/otn/java/jdk/8u231-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u231-linux-x64.tar.gz
本文档介绍了如何将Nacos从1.x版本平滑升级到2.0.0。步骤包括:参照官方文档、关闭服务器、启动Nacos 2.0、关闭双写功能、替换文件、修改配置、更新数据库参数,并记录了可能遇到的错误。
336

被折叠的 条评论
为什么被折叠?



