网站的特征包括哪些方面,如何拥有自己的网站域名,门户网站宣传方案,苏州搜狗关键词优化文章目录一、整合版本说明1. 毕业版本依赖关系(推荐使用)2. 组件版本关系3. 演示版本二、部署单机 TC Server2.1. 下载Seata2.2. 解压缩2.3. 启动2.4. 监听日志2.5. 启动命令讲解一、整合版本说明
1. 毕业版本依赖关系(推荐使用)
Spring Cloud VersionSpring Cloud Alibaba V…
文章目录一、整合版本说明1. 毕业版本依赖关系(推荐使用)2. 组件版本关系3. 演示版本二、部署单机 TC Server2.1. 下载Seata2.2. 解压缩2.3. 启动2.4. 监听日志2.5. 启动命令讲解一、整合版本说明
1. 毕业版本依赖关系(推荐使用)
Spring Cloud VersionSpring Cloud Alibaba VersionSpring Boot VersionSpring Cloud 2020.0.02021.12.4.2Spring Cloud Hoxton.SR92.2.6.RELEASE2.3.2.RELEASESpring Cloud Greenwich.SR62.1.4.RELEASE2.1.13.RELEASESpring Cloud Hoxton.SR32.2.1.RELEASE2.2.5.RELEASESpring Cloud Hoxton.RELEASE2.2.0.RELEASE2.2.X.RELEASESpring Cloud Greenwich2.1.2.RELEASE2.1.X.RELEASE
2. 组件版本关系
Spring Cloud Alibaba VersionSentinel VersionNacos VersionRocketMQ VersionDubbo VersionSeata Version2.2.6.RELEASE1.8.11.4.24.4.02.7.81.3.02021.1 or 2.2.5.RELEASE or 2.1.4.RELEASE or 2.0.4.RELEASE1.8.01.4.14.4.02.7.81.3.02.2.3.RELEASE or 2.1.3.RELEASE or 2.0.3.RELEASE1.8.01.3.34.4.02.7.81.3.02.2.1.RELEASE or 2.1.2.RELEASE or 2.0.2.RELEASE1.7.11.2.14.4.02.7.61.2.02.2.0.RELEASE1.7.11.1.44.4.02.7.4.11.0.0
3. 演示版本
Spring Cloud VersionSpring Cloud Alibaba VersionSpring Boot VersionNacos VersionjdkSpring Cloud Hoxton.SR92.2.6.RELEASE2.3.2.RELEASE1.4.21.8.202
按我们使用的SpringCloudAlibaba的版本是2.2.6 此次我们应该使用1.3.0版本的Seata进行安装。
版本说明 https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E
二、部署单机 TC Server
2.1. 下载Seata
在https://github.com/seata/seata/releases 这里找到对应的版本软件包进行下载 下载地址https://github.com/seata/seata/releases/download/v1.3.0/seata-server-1.3.0.zip 注单机模式只适用于学习或者本地测试阶段生产环境推荐使用集群模式。
2.2. 解压缩 cd /app
unzip seata-server-1.3.0.zip2.3. 启动
[rootnode2 app]# cd seata/bin/
[rootnode2 bin]# nohup ./seata-server.sh
2.4. 监听日志
[rootnode2 bin]#
[rootnode2 bin]# tail -f nohup.out可以看到日志中已经默认启动了 8091端口
因为 TC 需要进行全局事务和分支事务的记录所以需要对应的存储。目前TC 有两种存储模式( store.mode )
file 模式适合单机模式全局事务会话信息在内存中读写并持久化本地文件 root.data性能较高。 db 模式适合集群模式全局事务会话信息通过 db 共享相对性能差点。 显然我们将采用 file 模式最终我们部署单机 TC Server 如下图所示 因为我们使用 file 模式所以可以看到用于持久化的本地文件 root.data。操作命令如下
ls -l sessionStore/可以看到已经默认生成了root.data文件
2.5. 启动命令讲解
sh seata-server.sh -p $LISTEN_PORT -m $MODE(file or db) -h $HOST -e $ENV -p seata-server 监听服务端口号
-m 存储模式可选值file、db。file 用于单点模式db用于ha模式当使用db存储模式需要修改配置中store配置节点的数据库配置同时在数据库中初始化的sql
-h 用于解决seata-server和业务侧跨网络问题其配置的host值直接显示到注册中心的服务可用地址host当跨网络时这里需要配置为公网IP或NATIP若都在同一局域网则无需配置
-e 用于解决多环境配置中心隔离问题 接下一篇Seata 与 Nacos注册中心整合实现集群环境搭建_02