docs: 补充停止服务与卸载说明

EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 23:58:24 +08:00
parent 530a8b70a1
commit 31a0363a22
2 changed files with 85 additions and 0 deletions
+26
View File
@@ -143,6 +143,32 @@ bash deploy/backup.sh # 备份
bash deploy/uninstall.sh # 停止并卸载
```
### 停止 / 启动(不卸载)
```bash
sudo systemctl stop grade-archive
sudo systemctl start grade-archive
sudo systemctl restart grade-archive
```
### 卸载
```bash
# 仅停服务,保留代码与数据
sudo bash /opt/secondary-school-grade-archive/deploy/uninstall.sh
# 删除安装目录
sudo bash /opt/secondary-school-grade-archive/deploy/uninstall.sh --purge
# 删除数据库
sudo bash /opt/secondary-school-grade-archive/deploy/uninstall.sh --purge-db
# 完全清除
sudo bash /opt/secondary-school-grade-archive/deploy/uninstall.sh --purge --purge-db
```
详见 [docs/DEPLOY.md §5.1 / §5.2](./docs/DEPLOY.md#51-停止与启动服务)。
---
## 技术支持