Centos7 安装 seata2.0.0

seata 官网 :  https://seata.io/zh-cn/

seata下载地址:      https://github.com/seata/seata

 

1、下载seata包

wget https://github.com/apache/incubator-seata/releases/download/v2.0.0/seata-server-2.0.0.tar.gz

2、解压

tar zxvf seata-server-2.0.0.tar.gz -C /data/project

3、配置config、registry和store的存储方式。为了方便可以直接用file模式

vim /data/project/seata/conf/application.yml
seata:
  config:
    # support: nacos, consul, apollo, zk, etcd3
    type: nacos
    nacos:
      server-addr: http://192.168.1.72:8848
      namespace: hr-test
      group: SEATA_GROUP
      username: nacos
      password: nacos
data-id: seata-server.properties registry: # support: nacos, eureka, redis, zk, consul, etcd3, sofa type: nacos nacos: server
-addr: http://192.168.1.72:8848 namespace: hr-test group: SEATA_GROUP username: nacos password: nacos
data-id: seata-server.properties 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、启动

sh /data/project/seata/bin/seata-server.sh

启动看到以下内容但7091端口起来了,说明启动是成功的

 

5、查看启动日志

vim /data/project/seata/logs/start.out

6、在nacos上看有没有注册过来(存储方式为nacos)

 

7、访问web界面 http://127.0.0.1:7091 

默认账号密码   seata/seata

 

 

默认情况下,Seata 各组件的默认端口如下:

  • 事务协调器(Transaction Coordinator)默认端口为 8091。
  • 全局事务管理器(Global Transaction Manager)默认端口为 8090。
  • 本地事务处理器(Resource Manager)默认端口为 8092。

 

posted @ 2023-08-28 17:22  苦逼yw  阅读(811)  评论(0编辑  收藏  举报