{"id":20681249,"url":"https://github.com/flxxyz/servestats","last_synced_at":"2026-03-03T04:37:59.276Z","repository":{"id":44565559,"uuid":"259044421","full_name":"flxxyz/servestats","owner":"flxxyz","description":"统计多台服务器状态的命令行工具（网页分离）","archived":false,"fork":false,"pushed_at":"2023-01-12T07:24:28.000Z","size":126,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T14:41:30.263Z","etag":null,"topics":["golang","serverstats","serverstatus"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flxxyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-26T13:59:40.000Z","updated_at":"2022-02-14T02:11:36.000Z","dependencies_parsed_at":"2023-02-09T10:31:29.652Z","dependency_job_id":null,"html_url":"https://github.com/flxxyz/servestats","commit_stats":null,"previous_names":["flxxyz/serverstatus"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flxxyz%2Fservestats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flxxyz%2Fservestats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flxxyz%2Fservestats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flxxyz%2Fservestats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flxxyz","download_url":"https://codeload.github.com/flxxyz/servestats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250234258,"owners_count":21396964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","serverstats","serverstatus"],"created_at":"2024-11-16T22:10:18.013Z","updated_at":"2026-03-03T04:37:54.258Z","avatar_url":"https://github.com/flxxyz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# servestats\n一个实时监听服务器状态的命令行工具，使用go实现\n\n## 一个例子\n\n[https://servestats.deno.dev/](https://servestats.deno.dev/) 这只是一个分离出来的web界面，其中数据汇总均是通过该项目完成。\n\n## 使用(服务端)\n\n1. 前往 [Release](https://github.com/flxxyz/servestats/releases) 页，下载系统对应的版本\n2. 解压**servestats**压缩包，进入**servestats**文件夹\n3. 执行`./servestats server`, 默认监听端口`tcp: 9001; http: 9002`\n\n## 使用(客户端)\n\n1. 前往 [Release](https://github.com/flxxyz/servestats/releases) 页，下载系统对应的版本\n2. 解压**servestats**压缩包，进入**servestats**文件夹\n3. `./servestats uuid` 复制生成的唯一id\n4. 将客户端信息填入服务端`config.json`中\n5. 执行`./servestats client -h [服务器地址] -p 服务器端口 -id [客户端id]`接入，默认参数可忽略\n6. 服务端控制台收到当前客户端消息即为连接成功\n\n## 读取数据\n\n- [x] http: [server ip]:9002\n- [ ] websocket: [server ip]:9002\n\n## 更多命令\n\n执行 `servestats help` 命令获取更多参数信息\n```text\nservestats version: servestats/0.2.0\nUsage: servestats \u003ccommand\u003e\n\nAvailable commands:\n    server               {启动服务端 [servestats server [-h host] [-p TCPPort] [-hp HTTPPort] [-m multicore] [-c filename]]}\n    client               {启动客户端, -s [servestats client [-h host] [-p port] [-m multicore] [-t tick] [-id uuid]]}\n    system               {输出系统当前的参数 [servestats system]}\n    uuid                 {生成uuid [servestats uuid]}\n    traffic              {监听网卡实时流量 [servestats traffic]}\n    help                 {帮助 [servestats help [--help]]}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflxxyz%2Fservestats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflxxyz%2Fservestats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflxxyz%2Fservestats/lists"}