Giter Site home page Giter Site logo

ff0x00 / serverstatus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stilleshan/serverstatus

0.0 0.0 0.0 1.46 MB

集成美化主题的 ServerStatus 服务器监控程序 docker 版.更新支持 ARM 架构

Home Page: https://hub.docker.com/r/stilleshan/serverstatus

CSS 83.08% HTML 2.46% JavaScript 5.59% Dockerfile 0.12% Shell 8.75%

serverstatus's Introduction

ServerStatus

简介

ServerStatus 在 GitHub 上已经有各种版本,本项目是基于 ToyoDAdoubi/ServerStatus-Toyo 一键脚本项目,并整合网友制作的美化主题,打包为 docker 镜像,方便一键安装和迁移.

docker image support for X86 and ARM

screenshot

更新

2021-06-06 更新 docker 镜像同时支持 X86 和 ARM

部署

创建配置文件

推荐直接 git clone 本仓库到服务器 /root 目录内.或者手动下载仓库中的 config.json/root/ServerStatus/ 目录内.

cd /root
git clone https://github.com/stilleshan/ServerStatus.git

启动容器

示例 8888 端口为 Web 访问端口, 35601 为客户端通信端口,根据需求自行修改映射端口.注意防火墙需放行此端口.

docker run -d --name=serverstatus --restart=always -p 8888:80 -p 35601:35601 -v ~/ServerStatus/config.json:/ServerStatus/server/config.json stilleshan/serverstatus

访问地址

http://服务器IP:8888

使用域名和 HTTPS 协议可配置 Nginx 反向代理

配置

config.json 为服务器端配置文件,默认已经添加示例配置,可以根据示例格式修改,删除或者增加服务器.修改完毕后重启容器.

docker restart serverstatus

自定义前端页面

上述默认启动命令没有挂载 web 目录,如需自定义修改前端页面,需 git clone 本仓库到服务器 /root 目录内,执行以下命令挂载 web 目录.

docker run -d --name=serverstatus --restart=always -p 8888:80 -p 35601:35601 -v ~/ServerStatus/config.json:/ServerStatus/server/config.json -v ~/ServerStatus/web:/usr/share/nginx/html stilleshan/serverstatus

客户端

客户端需获取客户端服务器的运行情况,建议使用一键脚本安装.可参考图文教程: 服务器安装ServerStatus监控探针教程

wget -N --no-check-certificate https://raw.githubusercontent.com/stilleshan/ServerStatus/master/status.sh && chmod +x status.sh && bash status.sh c

相关链接

serverstatus's People

Contributors

stilleshan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.