nacos单机源码调试

 



# 首先从github上获取对应的源码Nacos源码 这里是1.1.4
git clone -b 1.1.4 https://github.com/alibaba/nacos.git

# git clone -b 1.2.1 https://github.com/alibaba/nacos.git



git clone -b 1.4.1 https://github.com/alibaba/nacos.git


# 使用idea打开,由于项目是使用maven进行管理的
mvn clean install -Dmaven.test.skip=true


# 进入到module:nacos-console【由于项目是使用SpringBoot】
需要进行Run/Debug Configurations
注意事宜:一定要增加VM options:-Dnacos.standalone=true, 否则启动的是集群模式

 


 

# 配置自己的mysql库
# 在console\src\main\resources\application.properties 添加下列属性
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://127.0.0.1:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
db.user=root
db.password=123456

 

 

 

 

参考 https://www.jianshu.com/p/9f4eb503bbc9

 

 

 

 

 

 

 

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值