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=db
store.lock.mode=file
store.session.mode=file
store.publicKey=
store.db.datasource=druid
store.db.dbType=mysql
store.db.driverClassName=com.mysql.jdbc.Driver
store.db.url=jdbc:mysql://192.168.6.10:3306/seata?useUnicode=true&rewriteBatchedStatements=true
store.db.user=root
store.db.password=123456
store.db.minConn=5
store.db.maxConn=30
store.db.globalTable=global_table
store.db.branchTable=branch_table
store.db.queryLimit=100
store.db.lockTable=lock_table
store.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.py
https://github.com/seata/seata/tree/develop/script/config-center/nacos

config.txt

https://github.com/seata/seata/blob/develop/script/config-center
https://github.com/seata/seata/blob/develop/script/config-center/config.txt
启动服务
sh seata-server.sh &
注册成功

seata集成nacos的配置中心_ico

参考文档

nacos配置中心