一、下载
下载地址:https://seata.apache.org/release-history/seata-server
二、安装
wget https://www.apache.org/dyn/closer.lua/incubator/seata/2.5.0/apache-seata-2.5.0-incubating-bin.tar.gz
mv seata /home/seata
三、配置
修改对应的参数:seata-server/conf/application.yml
chown -R seata.seata /home/seata
四、启动
cat >> /usr/lib/systemd/system/seata.service << 'EOF'
[Unit]
Description=Seata
After=network.target
[Service]
User=seata
ExecStart=/home/seata/bin/seata-server.sh
Type=forking
WorkingDirectory=/home/seata/bin
[Install]
WantedBy=multi-user.target
EOF
设置开机启动
systemctl enable seata
mkdir -p /home/seata/logs/seata
systemctl start seata
