1.将seata下的file.conf 复制到项目并修改
service {
#vgroup->rgroup
vgroupMapping.tx_service_default_group = "default" #修改自定义事务组名称
#only support single node
default.grouplist = "192.168.3.17:8091"
#degrade current not support
enableDegrade = false
#disable
disable = false
#unit ms,s,m,h,d represents milliseconds, seconds, minutes, hours, days, default permanent
max.commit.retry.timeout = "-1"
max.rollback.retry.timeout = "-1"
}
2.修改项目 yml文件
seata:
application-id: seata-server
tx-service-group: tx_service_default_group
service:
vgroup-mapping:
tx_service_default_group: default
groupList:
192.168.3.17: 8901
外网配置
将ip 192.168.3.17 更改为 外网服务器内网ip
外网启动命令
//服务器内网ip 注册到nacos的ip地址
nohup sh ./bin/seata-server.sh -p 8091 -h 172.x.x.x >seata.out 2>&1 &