源码
https://github.com/alibaba/nacos
https://gitee.com/mirrors/Nacos
编译
git clone https://github.com/alibaba/nacos.git
cd nacos/
mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U
ls -al distribution/target/
// change the $version to your actual path
cd distribution/target/nacos-server-$version/nacos/bin
修改conf目录下的application.properties文件
nacos.core.auth.plugin.nacos.token.secret.key = SecretKey012345678901234567890123456789012345678901234567890123456789
默认值SecretKey012345678901234567890123456789012345678901234567890123456789为公开默认值,可用于临时测试,实际使用时请务必更换为自定义的其他有效值。
启动
启动命令(standalone代表着单机模式运行,非集群模式):
startup.cmd -m standalone
访问nacos
打开 http://localhost:8848/nacos 。初始用户名nacos,密码nacos,登录之后,如下所示:
参考
https://nacos.io/zh-cn/docs/v2/quickstart/quick-start.html
https://blog.csdn.net/qq_40523572/article/details/89364340
https://blog.csdn.net/xunao8621/article/details/126065520