Nacos 2.2.1 版本下载启动报错问题解决
先上错误问题
这个报错我在网上找了~~~ 每个人都在说五花八门的, 接近真相但却不是!!!!!
接下来 由我补充
- nacos-server-2.2.1\nacos\bin\startup.cmd 文件 修改nacos模式
修改的好处在win下 你可以直接双击启动 不需要 .\startup.cmd -m standalone
命令
当然也可以直接.\startup.cmd -m standalone
命令启动
- nacos-server-2.2.1\nacos\conf\application.properties 文件 看名字就知道是配置文件
截图出重点
按照文档修改
### Since 1.4.1, worked when nacos.core.auth.enabled=true and nacos.core.auth.enable.userAgentAuthWhite=false.
### 翻译: 从 1.4.1 开始,在 nacos.core.auth.enabled=true 和 nacos.core.auth.enable.userAgentAuthWhite=false 时工作。
### The two properties is the white list for auth and used by identity the request from other server.
### 翻译: 这两个属性是用于身份验证的白名单,用于标识来自其他服务器的请求。
nacos.core.auth.server.identity.key=xxxx
nacos.core.auth.server.identity.value=xxxx
### worked when nacos.core.auth.system.type=nacos
### The token expiration in seconds:
nacos.core.auth.plugin.nacos.token.cache.enable=true
nacos.core.auth.plugin.nacos.token.expire.seconds=18000
### The default token (Base64 String): 自定义密钥时 官方在2.2.1版本后,社区发布版本将移除以文档如下值作为默认值,需要自行填充,否则无法启动节点。 此处采用官方默认
nacos.core.auth.plugin.nacos.token.secret.key=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg
到此 完美启动
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端