Stat Hub 收集并展示众多服务器状态的服务 Stat Hub

xuanbao • 2464 次点击    
这是一个分享于 的项目,其中的信息可能已经有所发展或是发生改变。
### 总揽 Stat Hub 是一个帮您收集并展示众多服务器状态的服务。 它由两部分组成,一是服务端,用于接收、储存和展示状态;另一个是客户端,它用于收集并发送状态到服务端。而这一切,您只需要两个二进制文件。 ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#演示)演示 [![demo](https://github.com/likexian/stathub-go/raw/master/demo.png)](https://github.com/likexian/stathub-go/blob/master/demo.png) ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#特性)特性 * Go 语言编写 * 只需两个文件就可以完成一切 * 部署简单,没有依赖不需要数据库 * 支持SSL安全,支持域名访问,安全并简单 ### 安装 请选择其中一台服务器做主服务器,并按以下说明在上面安装服务端。 ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#linux-如果有curl)Linux (如果有curl) <pre class="brush:shell;toolbar: true; auto-links: false;">curl --insecure https://raw.githubusercontent.com/likexian/stathub-go/master/setup.sh | sh</pre> ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#linux-如果有wget)Linux (如果有wget) <pre class="brush:shell;toolbar: true; auto-links: false;">wget --no-check-certificate -O - https://raw.githubusercontent.com/likexian/stathub-go/master/setup.sh | sh</pre> ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#在您电脑的浏览器打开它)在您电脑的浏览器打开它 对于大多数系统,到这里服务已经成功安装并启动了,现在您可以通过本地电脑上的浏览器打开它。 默认URL是 <pre class="brush:shell;toolbar: true; auto-links: false;">https://ip:15944</pre> 输入默认密码: likexian ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#添加一个客户端)添加一个客户端 按以下提示操作 <pre class="brush:shell;toolbar: true; auto-links: false;">https://ip:15944/help</pre> ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#faq)FAQ * 我添加了一个客户端,为什么没有数据显示?             请在客户端查看 client.log 的内容看看出错原因。 * 我可以使用域名而不是 IP 访问页面吗?             当然可以,请在域名解析中添加一条指向服务器端 IP 的 A 记录,然后用 https://子域名.域名:15944 访问即可。 * 我可以用 https 访问页面吗?             没问题,并且SSL是默认启用的,不过用的是自签名证书。 * 我可以不用自签名证书,而是使用自己的有效证书吗?             当然可以,并且强烈推荐这么做。请用您的证书替换掉 cert 目录里对应的文件。 * 我可以跟 nginx 一起部署吗? 没问题,请将以下配置加到 nginx 配置文件。 <pre class="brush:xml;toolbar: true; auto-links: false;">location /stathub/ {     proxy_pass https://127.0.0.1:15944;     proxy_set_header X-Real-IP $remote_addr; }</pre> ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#版权)版权     Copyright 2015-2016, Li Kexian     Apache License, Version 2.0 ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#打赏)打赏 * [以赏表赞](https://www.likexian.com/zh-CN/donate/) ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#关于)关于 * [Li Kexian](https://www.likexian.com/) ### [](https://github.com/likexian/stathub-go/blob/master/README-ZH.md#感谢)感谢 * [All stargazers](https://github.com/likexian/stathub-go/stargazers) * [Livid](https://github.com/livid) * [Septembers](https://github.com/Septembers) * [Bluek404](https://github.com/Bluek404) * [renjie45](https://github.com/renjie45) * [vijaygadde](https://github.com/vijaygadde) * [davoola](https://github.com/davoola) * [ShenXuGongZi](https://github.com/ShenXuGongZi)             请在客户端查看 client.log 的内容看看出错原因。             当然可以,请在域名解析中添加一条指向服务器端 IP 的 A 记录,然后用 https://子域名.域名:15944 访问即可。             没问题,并且SSL是默认启用的,不过用的是自签名证书。             当然可以,并且强烈推荐这么做。请用您的证书替换掉 cert 目录里对应的文件。
授权协议:
Apache
开发语言:
Google Go 查看源码»
操作系统:
跨平台
2464 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传