Nacos 源码编译

Nacos 源码编译运行
源码下载地址:https://github.com/alibaba/nacos/
版本: Nacos 1.1.4

1)进入 nacos 目录,执行编译命令
复制代码
编译成功后会在 distribution/target 目录下生成 nacos-server-1.1.4.tar.gz

2)启动 nacos
进入 console 模块,找到启动类 com.alibaba.nacos.Nacos,执行 main 方法

3) 配置启动参数
单机模式执行需要指定 nacos.standalone=true
复制代码
创建 nacos_config 数据库(distribution/conf/nacos-mysql.sql)
在 application.properties 中添加 mysql 配置
复制代码
4)进入http://localhost:8848/nacos,用户名和密码默认 nacos

版权声明: 本文为 InfoQ 作者【程序员Fox】的原创文章。
原文链接:【http://xie.infoq.cn/article/928e8f505f34fdd4c468e9a10】。文章转载请联系作者。
评论