创建seata用户

useradd seata
sudo passwd seata
mkdir /opt/seata
vi /etc/passwd > 修改seata组为0(root组)

vi /etc/sudoers > 
增加seata
root    ALL=(ALL:ALL) ALL
seata    ALL=(ALL:ALL) ALL

su seata

Seata安装部署

# 创建目录
$ mkdir -p /Users/yunai/Seata
$ cd /Users/yunai/Seata

# 下载
$ wget https://github.com/seata/seata/releases/download/v1.1.0/seata-server-1.1.0.tar.gz

# 解压
$ tar -zxvf seata-server-1.1.0.tar.gz

# 查看目录
$ cd seata
$ ls -ls
24 -rw-r--r--    1 yunai  staff  11365 May 13  2019 LICENSE
 0 drwxr-xr-x    4 yunai  staff    128 Apr  2 07:46 bin # 执行脚本
 0 drwxr-xr-x    9 yunai  staff    288 Feb 19 23:49 conf # 配置文件
 0 drwxr-xr-x  138 yunai  staff   4416 Apr  2 07:46 lib #  seata-*.jar + 依赖库

确保Centos防火墙关闭:

安装iptables-services:

yum install iptables-services
service iptables [stop|start|restart]
service iptables status

Spring Boot 分布式事务 Seata 入门

本文参考: yudao