seata 官网 : https://seata.io/zh-cn/index.html
seata下载地址: https://github.com/seata/seata
1、下载seata包
wget https://github.com/seata/seata/releases/download/v1.7.0/seata-server-1.7.0.tar.gz
2、解压
tar zxvf seata-server-1.7.0.tar.gz -C /usr/local/
3、配置config、registry和store
seata: config: # support: nacos, consul, apollo, zk, etcd3 type: nacos nacos: server-addr: http://192.168.1.72:8848 namespace: group: SEATA_GROUP username: nacos password: nacos registry: # support: nacos, eureka, redis, zk, consul, etcd3, sofa type: nacos nacos: server-addr: http://192.168.1.72:8848 namespace: group: SEATA_GROUP username: nacos password: nacos store: # support: file 、 db 、 redis mode: db db: datasource: druid db-type: mysql driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://192.168.1.72:3306/seata?rewriteBatchedStatements=true user: root password: sykj@2023 min-conn: 10 max-conn: 100 global-table: global_table branch-table: branch_table lock-table: lock_table distributed-lock-table: distributed_lock query-limit: 1000 max-wait: 5000
4、启动
/usr/local/seata/bin/seata-server.sh
5、查看有没有启动成功
vim /usr/local/seata/logs/start.out
标签:seata,seata1.7,lock,db,nacos,server,Centos7,table,安装 From: https://www.cnblogs.com/lfxx/p/17662901.html