[+] 脚本

This commit is contained in:
acgist
2023-02-04 11:31:24 +08:00
parent 952adad7b6
commit 5e1a25aa21
5 changed files with 26 additions and 18 deletions

View File

@@ -271,8 +271,8 @@ mvn clean package -D skipTests
# 拷贝脚本
cp taoyao-server/target/taoyao-server-1.0.0/bin/deploy.sh ./
# 配置启动服务
vim /usr/lib/systemd/system/taoyao-signal.service
# 配置服务
vim /usr/lib/systemd/system/taoyao-signal-server.service
----
[Unit]
@@ -294,9 +294,15 @@ RestartSec=5s
WantedBy=multi-user.target
----
# 配置自启
systemctl daemon-reload
systemctl start taoyao
systemctl enable taoyao
systemctl enable taoyao-signal-server
# 执行脚本
./deploy.sh
# 管理服务
systemctl start | stop | restart taoyao-signal-server
```
## 安装终端