以下是在Linux上设置Seata开机启动的步骤:
cd /usr/local/seata/bin/
sudo vi /lib/systemd/system/seata.service
[Unit]
Description=seata
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/seata/seata-server-0.5.1/bin/startup.sh
Restart=always
PrivateTmp=true
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start seata
sudo systemctl enable seata