博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
seata集成nacos的配置中心
阅读量:2155 次
发布时间:2019-05-01

本文共 1332 字,大约阅读时间需要 4 分钟。

registry.conf

server端

# 文件地址$seata-home/conf/registry.conf
config {
type = "nacos" nacos {
application = "seata-server" serverAddr = "192.168.6.10" namespace = "seata-namespace-id" # namespaceid cluster = "default" username = "" password = "" }}

config.txt

截取db相关信息

store.mode=dbstore.lock.mode=filestore.session.mode=filestore.publicKey=store.db.datasource=druidstore.db.dbType=mysqlstore.db.driverClassName=com.mysql.jdbc.Driverstore.db.url=jdbc:mysql://192.168.6.10:3306/seata?useUnicode=true&rewriteBatchedStatements=truestore.db.user=rootstore.db.password=123456store.db.minConn=5store.db.maxConn=30store.db.globalTable=global_tablestore.db.branchTable=branch_tablestore.db.queryLimit=100store.db.lockTable=lock_tablestore.db.maxWait=5000

上传命令

sh ${
SEATAPATH}/script/config-center/nacos/nacos-config.sh -h localhost -p 8848 -g SEATA_GROUP -t 5a3c7d6c-f497-4d68-a71a-2e5e3340b3ca -u username -w password
nacos-config.sh -h localhost -p 8848 -g SEATA_GROUP -t seata-namespace-id

相关资源

nacos-config.sh

# nacos-config.sh or nacos-config.pyhttps://github.com/seata/seata/tree/develop/script/config-center/nacos

config.txt

https://github.com/seata/seata/blob/develop/script/config-centerhttps://github.com/seata/seata/blob/develop/script/config-center/config.txt

启动服务

sh seata-server.sh &

注册成功

在这里插入图片描述

参考文档

转载地址:http://euawb.baihongyu.com/

你可能感兴趣的文章
Leetcode C++《每日一题》20200625 139. 单词拆分
查看>>
Leetcode C++《每日一题》20200626 338. 比特位计数
查看>>
Leetcode C++ 《拓扑排序-1》20200626 207.课程表
查看>>
Go语言学习Part1:包、变量和函数
查看>>
Go语言学习Part2:流程控制语句:for、if、else、switch 和 defer
查看>>
Go语言学习Part3:struct、slice和映射
查看>>
Go语言学习Part4-1:方法和接口
查看>>
Leetcode Go 《精选TOP面试题》20200628 69.x的平方根
查看>>
leetcode 130. Surrounded Regions
查看>>
【托业】【全真题库】TEST2-语法题
查看>>
博客文格式优化
查看>>
【托业】【新托业全真模拟】疑难语法题知识点总结(01~05)
查看>>
【SQL】group by 和order by 的区别。
查看>>
【Python】详解Python多线程Selenium跨浏览器测试
查看>>
Jmeter之参数化
查看>>
Shell 和Python的区别。
查看>>
Python 列表(list)、字典(dict)、字符串(string)常用基本操作小结
查看>>
Loadrunner之https协议录制回放报错如何解决?(九)
查看>>
python中xrange和range的异同
查看>>
列表、元组、集合、字典
查看>>