参考文档:http://www.dreamwu.com/post-1741.html
1、简介
Seata
是一款开源的分布式事务解决方案
,致力于提供高性能和简单易用的分布式事务服务。Seata 将为用户提 供了AT
、TCC
、SAGA
和 XA
事务模式,为用户打造一站式的分布式解决方案。
2、下载
下载地址:https://github.com/seata/seata/releases
网盘地址:链接: https://pan.baidu.com/s/1bKn0xvFh8flS7lBJPn-c8Q 提取码: gv84
3、启动及配置
3.1、启动
- 执行
./seata-server.sh -h 127.0.0.1 -p 8091 -m file -n 1
以启动服务,如图:
此时访问http://localhsot:8091
,日志报错。
3.2、配置,改为db模式启动
配置文件放置在安装路径/conf
文件夹下
registry.conf
将config
和registry
的type
改为file
file.conf
将mode
的值改为db
,并修改对应的数据库连接信息。