window安装nacos教程并配置密码
解决方法:
1、下载nacos-server-2.2.3.zip
https://github.com/alibaba/nacos/releases/download/2.2.3/nacos-server-2.2.3.zip
其他版本:https://github.com/alibaba/nacos/releases
2、E:\nacos-server-2.2.3\nacos\conf修改application.properties中配置,
nacos.core.auth.caching.enabled=true
nacos.core.auth.server.identity.key=nacos
nacos.core.auth.server.identity.value=nacos
nacos.core.auth.plugin.nacos.token.secret.key=$2a$10$UELFFxpQFnve59Hvxn4.kOzddIpFmuhLo2eablGpqW1pfIUtbgFoa
可以先按我这样配置密码,登录进去在页面上修改密码
nacos.core.auth.plugin.nacos.token.secret.key用这个java代码生成:
System.out.println(new BCryptPasswordEncoder().encode("nacos"));
2、到安装目录下的bin
cd E:\nacos-server-2.2.3\nacos\bin
3、启动
startup.cmd -m standalone
4、页面地址
http://localhost:8848/nacos