更新许可证,更新主页、调整了一些文章格式
This commit is contained in:
parent
035873b57e
commit
3864dbed93
@ -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
|
||||
- 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
|
||||
---
|
||||
<br/>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
|
@ -1,22 +1,22 @@
|
||||
**哪吒监控的被控端服务被称为Agent,本文档将介绍如何在被控端服务器上安装Agent,并与Dashboard连接**
|
||||
<br/>
|
||||
## 一键安装Agent
|
||||
---
|
||||
|
||||
目前哪吒监控已支持在WIndows和Linux上一键安装Agent,遵循本文档的步骤,你可以很轻松的在服务器上部署它
|
||||
<br/>
|
||||
### 准备工作
|
||||
---
|
||||
|
||||
你需要提前在管理面板中设置好通信域名,此域名不可以接入CDN,这里以前面提到过的示例通信域名 “data.example.com” 来做演示
|
||||
进入后台管理面板,转到“设置”页,在“未接入CDN的面板服务器域名/IP”项中填入通信域名,然后点击"保存"
|
||||
<br/>
|
||||
### Linux一键安装
|
||||
---
|
||||
|
||||
* 首先在管理面板中添加一台服务器
|
||||
* 点击新添加的服务器旁,绿色的Linux图标按钮,复制一键安装命令
|
||||
* 在被控端服务器中运行复制的一键安装命令,等待安装完成后返回到Dashboard主页查看服务器是否上线
|
||||
<br/>
|
||||
### Windows一键安装
|
||||
---
|
||||
|
||||
* 首先在管理面板中添加一台服务器
|
||||
* 点击新添加的服务器旁,绿色的Windows图标按钮,复制一键安装命令
|
||||
* 进入Windows服务器,运行PowerShell,在PowerShell中运行复制的安装命令
|
||||
@ -25,7 +25,7 @@
|
||||
<br/>
|
||||
<br/>
|
||||
## 其他方式安装Agent
|
||||
---
|
||||
|
||||
<br/>
|
||||
|
||||
### Linux安装Agent
|
||||
@ -44,13 +44,13 @@ curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh
|
||||
<br/>
|
||||
|
||||
### Windows安装Agent
|
||||
---
|
||||
|
||||
- 请参考社区文章:
|
||||
[哪吒探针 - Windows 客户端安装](https://nyko.me/2020/12/13/nezha-windows-client.html)
|
||||
<br/>
|
||||
|
||||
### OpenWRT安装Agent
|
||||
---
|
||||
|
||||
**如何使 旧版OpenWRT/LEDE 自启动**
|
||||
- 请参考项目:
|
||||
[哪吒监控 For OpenWRT](https://github.com/Erope/openwrt_nezha)
|
||||
|
@ -1,5 +1,5 @@
|
||||
### 准备工作
|
||||
----
|
||||
## 准备工作
|
||||
|
||||
搭建一个哪吒监控,你需要:
|
||||
1. 一台可以连接公网的VPS,防火墙和安全策略需要放行8008和5555端口,否则会无法访问和无法接收数据。单核512MB内存的服务器配置就足以满足大多数使用场景
|
||||
2. 一个已经设置好A记录,指向Dashboard服务器ip的域名
|
||||
@ -12,8 +12,9 @@
|
||||
**本文档将以宝塔面板反代面板的过程作为范例,随着未来版本的变化,部分功能的入口可能会发生改变,本文档仅供参考**
|
||||
<br/>
|
||||
<br/>
|
||||
### 获取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,新建的密钥仅会显示一次,请妥善保存
|
||||
<br/>
|
||||
<br/>
|
||||
### 在服务器中安装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
|
||||
来打开管理脚本
|
||||
<br/>
|
||||
<br/>
|
||||
### 配置反向代理
|
||||
---
|
||||
|
||||
## 配置反向代理
|
||||
|
||||
* 在宝塔面板中新建一个站点,域名填写公开访问域名,如 “http://cdn.example.com“ ,然后点击“设置”进入站点设置选项,选择“反向代理” - “新建反向代理”
|
||||
|
||||
* 自定义一个代理名称,在下方“目标URL”中填入 `http://127.0.0.1` 然后点击“保存”
|
||||
@ -96,8 +99,8 @@ location ~ ^/(ws|terminal/.+)$ {
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
### 在宝塔面板中配置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" ,**不更改此项可能会导致你无法登陆面板后台**
|
@ -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
|
||||
- title: 一键安装
|
||||
details: 支持一键脚本安装面板和监控服务,轻松使用;Linux、WIndows、MacOS、OpenWRT等主流系统均受支持
|
||||
- title: 随时监控
|
||||
details: 支持同时监控多个服务器的系统状态,支持监控网页、端口、SSL证书状态;支持故障、流量等状态报警,支持多种通知方式(Telegram、邮件、微信等)
|
||||
- title: 轻量运维
|
||||
details: 支持在线SSH,支持流量循环监控,支持设置定时任务、服务器批量执行任务
|
||||
footer: Copyright © 2022-present Nezhahq
|
||||
---
|
||||
<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议</a>进行许可。
|
Loading…
x
Reference in New Issue
Block a user