From 2289d16f034e55e2b6381d3046a261c9f6118a91 Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 31 Oct 2021 16:14:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E6=9B=B4=E6=96=B0=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E8=AF=B4=E6=98=8E=E5=92=8C=E5=8D=B8=E8=BD=BD=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++-- script/install.sh | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index baae762..c20930e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@
LOGO designed by 熊大 .

-    +   

:trollface: 哪吒监控 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,计划任务和在线终端。

@@ -225,7 +225,9 @@ URL 里面也可放置占位符,请求时会进行简单的字符串替换。
如何进行数据迁移、备份恢复? -数据储存在 `/opt/nezha` 文件夹中,迁移数据时打包这个文件夹,到新环境解压。然后执行一键脚本安装即可 +1. 先使用一键脚本 `停止面板` +2. 打包 `/opt/nezha` 文件夹,到新环境相同位置 +3. 使用一键脚本 `启动面板`
diff --git a/script/install.sh b/script/install.sh index 91c0d36..c07afa0 100755 --- a/script/install.sh +++ b/script/install.sh @@ -11,7 +11,7 @@ NZ_BASE_PATH="/opt/nezha" NZ_DASHBOARD_PATH="${NZ_BASE_PATH}/dashboard" NZ_AGENT_PATH="${NZ_BASE_PATH}/agent" NZ_AGENT_SERVICE="/etc/systemd/system/nezha-agent.service" -NZ_VERSION="v0.7.0" +NZ_VERSION="v0.7.1" red='\033[0;31m' green='\033[0;32m' @@ -387,6 +387,8 @@ uninstall_dashboard() { cd $NZ_DASHBOARD_PATH && docker-compose down rm -rf $NZ_DASHBOARD_PATH + docker rmi -f ghcr.io/naiba/nezha-dashboard > /dev/null 2>&1 + docker rmi -f registry.cn-shanghai.aliyuncs.com/naibahq/nezha-dashboard > /dev/null 2>&1 clean_all if [[ $# == 0 ]]; then