站长视角
服务为王

Linux系统下,通过ServerStatus-Hotaru搭建自己的服务器监控平台

基于Linux下,通过ServerStatus-Hotaru搭建自己的服务器监控平台。最低需要2台机器,一台用于控制端,另一台用于客户端(可创建多台)。可直安装在宝塔面板。服务端、客户端脚本支持系统:Centos 7、Debian 8、Ubuntu 15.10 及以上、ArchLinux。Python客户端:支持 Python 版本:Python 2.7+。

服务端、客户端需下面的脚本:

  • 服务端
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh
bash status.sh s

脚本中有可选项,选择是安装新的 Nginx 程序或不安装而使用自己已经安装的 Nginx

如果使用自己的 Nginx 程序则需要将/usr/local/ServerStatus/web目录设置为网站目录即可

可以选择在使用脚本时就直接做好配置或者在/usr/local/ServerStatus/server中直接编辑 config.json 文件

  • 客户端
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh
bash status.sh c

可以选择在使用脚本时就直接做好配置或者在/usr/local/ServerStatus/client中直接编辑 status-client.py 文件

服务器端配置文件修改:/usr/local/ServerStatus/web/json/stats.json 和 /usr/local/ServerStatus/server/config.json

服务器端配置文件修改:/usr/local/ServerStatus/client/status-client.py

演示:https://status.200022.xyz/

ServerStatus Github:https://github.com/BotoX/ServerStatus
ServerStatus-Hotaru Github:https://github.com/CokeMine/ServerStatus-Hotaru

ServerStatus-Hotaru 的图片使用有点花里胡哨,建议直接编辑/usr/local/ServerStatus/web/css/hotaru_fix.css这个文件,将头部背景图去掉,或者直接把 img 文件夹中的图片删除


赞(0)
未经允许不得转载:康维主机测评-网站SEO优化 » Linux系统下,通过ServerStatus-Hotaru搭建自己的服务器监控平台
分享到

康维主机测评网 方便 全面 快速 找到你的需求

专注IDC行业国内外服务器资源共享发布