本文共 1332 字,大约阅读时间需要 4 分钟。
# 文件地址$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 = "" }}
截取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 or nacos-config.pyhttps://github.com/seata/seata/tree/develop/script/config-center/nacos
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/