Fix installer when repository is already in /opt/server-monitor

This commit is contained in:
yhlhoh committed 2026-10-21 12:34:10 +08:00
1 parent 315cb36a21
commit bf2d960dc1
2 files changed
+27 -9

No files matched your search

+2 -2
View File
@@ -59,7 +59,7 @@ chmod +x install.sh
sudo ./install.sh
```
脚本会把程序安装到 `/opt/server-monitor`,安装 `server-monitor.service`,并立即启动。默认监听 `0.0.0.0:8787`。
脚本会把程序安装到 `/opt/server-monitor`,安装 `server-monitor.service`,并立即启动。默认监听 `0.0.0.0:8787`。如果仓库本身已经放在 `/opt/server-monitor`,脚本会跳过自我复制,可直接重复运行。
```bash
systemctl status server-monitor --no-pager
@@ -226,4 +226,4 @@ sudo rm -f /etc/server-monitor.env
ss -lntp | grep 8787
```
改用 `--port` 或 systemd drop-in 修改端口。
改用 `--port` 或 systemd drop-in 修改端口。