Giter Site home page Giter Site logo

servestats's Introduction

servestats

一个实时监听服务器状态的命令行工具,使用go实现

一个例子

https://servestats.deno.dev/ 这只是一个分离出来的web界面,其中数据汇总均是通过该项目完成。

使用(服务端)

  1. 前往 Release 页,下载系统对应的版本
  2. 解压servestats压缩包,进入servestats文件夹
  3. 执行./servestats server, 默认监听端口tcp: 9001; http: 9002

使用(客户端)

  1. 前往 Release 页,下载系统对应的版本
  2. 解压servestats压缩包,进入servestats文件夹
  3. ./servestats uuid 复制生成的唯一id
  4. 将客户端信息填入服务端config.json
  5. 执行./servestats client -h [服务器地址] -p 服务器端口 -id [客户端id]接入,默认参数可忽略
  6. 服务端控制台收到当前客户端消息即为连接成功

读取数据

  • http: [server ip]:9002
  • websocket: [server ip]:9002

更多命令

执行 servestats help 命令获取更多参数信息

servestats version: servestats/0.2.0
Usage: servestats <command>

Available commands:
    server               {启动服务端 [servestats server [-h host] [-p TCPPort] [-hp HTTPPort] [-m multicore] [-c filename]]}
    client               {启动客户端, -s [servestats client [-h host] [-p port] [-m multicore] [-t tick] [-id uuid]]}
    system               {输出系统当前的参数 [servestats system]}
    uuid                 {生成uuid [servestats uuid]}
    traffic              {监听网卡实时流量 [servestats traffic]}
    help                 {帮助 [servestats help [--help]]}

servestats's People

Contributors

flxxyz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

servestats's Issues

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.