1、seataserver搭建(windows)
在建seata服务之前请搭建好nacos服务
官方的最新的为2.0.0版的,这个版本暂时有些问题,管理分布式事务时会报错。所以建议使用1.8的。
下载地址Releases · apache/incubator-seata (github.com)https://github.com/apache/incubator-seata/releases
下下来的报也有问题,解压后注意将低版本的包删掉
修改其配置文件
D:\soft\seata-server-1.8.0\seata\conf\application.yml
seata:
# nacos配置
config:
type: nacos
nacos:
server-addr: 172.25.212.71:8848
namespace:
group: SEATA_GROUP
username: nacos
password: nacos
context-path:
data-id: seata.properties
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key:
#secret-key:
registry:
# nacos配置
type: nacos
nacos:
application: seata-server
server-addr: 172.25.212.71:8848
group: SEATA_GROUP
namespace:
cluster: default
username: nacos
password: nacos
# store:
# # support: file 、 db 、 redis
# mode: file
# server:
# service-