From 3864dbed935d7968dca42c6953c4bd4c08971a0a Mon Sep 17 00:00:00 2001 From: hhhkkk520 Date: Tue, 17 May 2022 20:02:06 +0200 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=B8=E5=8F=AF=E8=AF=81?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=96=B0=E4=B8=BB=E9=A1=B5=E3=80=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=BA=86=E4=B8=80=E4=BA=9B=E6=96=87=E7=AB=A0=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en_US/index.md | 19 ++++++++++--------- docs/guide/agent.md | 14 +++++++------- docs/guide/dashboard.md | 23 +++++++++++++---------- docs/index.md | 19 ++++++++++--------- 4 files changed, 40 insertions(+), 35 deletions(-) diff --git a/docs/en_US/index.md b/docs/en_US/index.md index 12176f39..a89eb7de 100644 --- a/docs/en_US/index.md +++ b/docs/en_US/index.md @@ -2,15 +2,16 @@ home: true heroImage: https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg heroText: Nezha Monitoring -tagline: Self-hosted lightweight multi-server and website monitoring and alerting. +tagline: A open source, lightweight server and website monitoring and O&M tool actionText: Learn more → actionLink: /en_US/guide/dashboard features: -- title: 特性1 - details: 特性1特性1特性1 -- title: 特性2 - details: 特性2特性2特性2 -- title: 特性3 - details: 特性3特性3特性3 -footer: Licence | Copyright © 2022-present Nezhahq ---- \ No newline at end of file +- title: One-Click Installation + details: Support use one-click script to install Dashboard and Agent services; Linux, WIndows, MacOS, OpenWRT and other mainstream systems are supported +- title: Monitoring at any time + details: Support monitoring the system status of multiple servers at the same time, support monitoring the status of web pages, ports, SSL certificates; support notifications in case of failure, out of data and other status. Support multiple notification methods (Telegram, email, WeChat, etc.) +- title: Lightweight O&M tool + details: Support WebSSH, support cyclic monitoring data, support setting scheduled tasks and running command on multiple servers +footer: Copyright © 2022-present Nezhahq +--- +
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. \ No newline at end of file diff --git a/docs/guide/agent.md b/docs/guide/agent.md index 8b872790..f9890166 100644 --- a/docs/guide/agent.md +++ b/docs/guide/agent.md @@ -1,22 +1,22 @@ **哪吒监控的被控端服务被称为Agent,本文档将介绍如何在被控端服务器上安装Agent,并与Dashboard连接**
## 一键安装Agent ---- + 目前哪吒监控已支持在WIndows和Linux上一键安装Agent,遵循本文档的步骤,你可以很轻松的在服务器上部署它
### 准备工作 ---- + 你需要提前在管理面板中设置好通信域名,此域名不可以接入CDN,这里以前面提到过的示例通信域名 “data.example.com” 来做演示 进入后台管理面板,转到“设置”页,在“未接入CDN的面板服务器域名/IP”项中填入通信域名,然后点击"保存"
### Linux一键安装 ---- + * 首先在管理面板中添加一台服务器 * 点击新添加的服务器旁,绿色的Linux图标按钮,复制一键安装命令 * 在被控端服务器中运行复制的一键安装命令,等待安装完成后返回到Dashboard主页查看服务器是否上线
### Windows一键安装 ---- + * 首先在管理面板中添加一台服务器 * 点击新添加的服务器旁,绿色的Windows图标按钮,复制一键安装命令 * 进入Windows服务器,运行PowerShell,在PowerShell中运行复制的安装命令 @@ -25,7 +25,7 @@

## 其他方式安装Agent ---- +
### Linux安装Agent @@ -44,13 +44,13 @@ curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh
### Windows安装Agent ---- + - 请参考社区文章: [哪吒探针 - Windows 客户端安装](https://nyko.me/2020/12/13/nezha-windows-client.html)
### OpenWRT安装Agent ---- + **如何使 旧版OpenWRT/LEDE 自启动** - 请参考项目: [哪吒监控 For OpenWRT](https://github.com/Erope/openwrt_nezha) diff --git a/docs/guide/dashboard.md b/docs/guide/dashboard.md index 3b850c34..c14f86ed 100644 --- a/docs/guide/dashboard.md +++ b/docs/guide/dashboard.md @@ -1,5 +1,5 @@ -### 准备工作 ----- +## 准备工作 + 搭建一个哪吒监控,你需要: 1. 一台可以连接公网的VPS,防火墙和安全策略需要放行8008和5555端口,否则会无法访问和无法接收数据。单核512MB内存的服务器配置就足以满足大多数使用场景 2. 一个已经设置好A记录,指向Dashboard服务器ip的域名 @@ -12,8 +12,9 @@ **本文档将以宝塔面板反代面板的过程作为范例,随着未来版本的变化,部分功能的入口可能会发生改变,本文档仅供参考**

-### 获取Github的Client ID和密钥 ----- + +## 获取Github的Client ID和密钥 + 哪吒监控接入Github和Gitee作为后台管理员账号 + 首先我们需要新建一个验证应用,以Github为例,登陆Github后,打开 https://github.com/settings/developers ,依次选择“OAuth Apps” - “New OAuth App” `Application name` - 随意填写 @@ -23,8 +24,9 @@ + 保存页面中的Client ID,然后点击 “Generate a new client secret“,创建一个新的Client Secret,新建的密钥仅会显示一次,请妥善保存

-### 在服务器中安装Dashboard ---- + +## 在服务器中安装Dashboard + * 在面板服务器中,运行安装脚本: ```bash curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh @@ -53,8 +55,9 @@ curl -L https://fastly.jsdelivr.net/gh/naiba/nezha@master/script/install.sh -o n 来打开管理脚本

-### 配置反向代理 ---- + +## 配置反向代理 + * 在宝塔面板中新建一个站点,域名填写公开访问域名,如 “http://cdn.example.com“ ,然后点击“设置”进入站点设置选项,选择“反向代理” - “新建反向代理” * 自定义一个代理名称,在下方“目标URL”中填入 `http://127.0.0.1` 然后点击“保存” @@ -96,8 +99,8 @@ location ~ ^/(ws|terminal/.+)$ {

-### 在宝塔面板中配置SSL ---- +## 在宝塔面板中配置SSL + 首先,先暂时关闭反向代理 正如在其他网站中配置SSL证书一样,进入站点设置中的“SSL”,你可以选择自动申请 Let´s Encrypt 证书或手动配置已有的证书 完成SSL的设置后,你需要回到 https://github.com/settings/developers ,编辑之前创建的验证应用程序,将之前我们填入的"Homepage URL"和"Authorization callback URL"中的域名全部从`http`改为`https`,如:"https://cdn.example.com" 和 "https://cdn.example.com/oauth2/callback" ,**不更改此项可能会导致你无法登陆面板后台** \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 4acd13c6..15a80f32 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,15 +2,16 @@ home: true heroImage: https://raw.githubusercontent.com/naiba/nezha/master/resource/static/brand.svg heroText: 哪吒监控 -tagline: 轻量的自托管监控、运维工具 +tagline: 一个开源的轻量服务器和网站监控、运维工具 actionText: 开始使用 → actionLink: /guide/dashboard features: -- title: 特性1 - details: 特性1特性1特性1 -- title: 特性2 - details: 特性2特性2特性2 -- title: 特性3 - details: 特性3特性3特性3 -footer: Licence | Copyright © 2022-present Nezhahq ---- \ No newline at end of file +- title: 一键安装 + details: 支持一键脚本安装面板和监控服务,轻松使用;Linux、WIndows、MacOS、OpenWRT等主流系统均受支持 +- title: 随时监控 + details: 支持同时监控多个服务器的系统状态,支持监控网页、端口、SSL证书状态;支持故障、流量等状态报警,支持多种通知方式(Telegram、邮件、微信等) +- title: 轻量运维 + details: 支持在线SSH,支持流量循环监控,支持设置定时任务、服务器批量执行任务 +footer: Copyright © 2022-present Nezhahq +--- +
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。 \ No newline at end of file