Go 单二进制Single Go binary 零外部依赖Zero external deps 离线部署Offline deploy

一台服务器,一个页面管到底 One server, one console

PostSup 把 supervisor 服务管理、应用全生命周期、设备终端、时间同步与资产画像收进一个自包含的 Go 二进制。部署只需上传一个文件夹 —— 目标机无需源码、无需 Go、无需任何 Python 依赖。 PostSup folds supervisor service management, application lifecycle, device terminals, time sync and asset profiling into one self-contained Go binary. Deploy by uploading a single folder — no source, no Go, no Python on the target host.

9
能力域Capability areas
30+
REST 接口REST endpoints
1
单二进制Binary
0
运行时依赖Runtime deps

界面一览A look at the console

毛玻璃界面,亮 / 暗主题跟随系统。以下为界面示意,数据均为示例值。 Frosted-glass UI, light/dark follows the system. Illustrative mockups — all values are examples.

postsup · 服务管理Services
psup-api-gateway
RUNNING · pid 10482
psup-order-svc
RUNNING · pid 10513
psup-log-svc
RUNNING · pid 10540
psup-media-svc
STARTING · —
postsup · 资源监控Resources
RSS
19.0 MB
CPU
2.4%
MEM
37.2%
DISK
62.3%

能力域Capabilities

从服务启停到资产盘点,覆盖单机运维的主要工作面。 From service control to asset inventory — the main surface of single-host operations.

服务管理Service management

supervisorctl 封装,按前缀分组家族管理;单条操作 + 密码防呆,避免手滑停错服务。 A supervisorctl wrapper with prefix-based grouping. Per-action password guard prevents mis-clicks.

应用管理Application lifecycle

Git 克隆、源码 ZIP、单二进制三种接入形态;自动识别语言与部署类型,支持在线构建。 Git clone, source ZIP or single binary. Language and deploy type are auto-detected; online builds supported.

增量更新Incremental updates

按部署类型分流:增量包或单文件替换;含备份、一键回滚与 SHA256 完整性校验。 Routed by deploy type — incremental archive or single-file swap, with backup, one-click rollback and SHA256 checks.

设备终端Device terminal

Go 原生 SSH:交互式 shell、账号库、SFTP 文件管理、空闲超时与连接审计。 Native Go SSH: interactive shell, account vault, SFTP file manager, idle timeout and connection audit.

时间同步Time sync

原生 NTP 探测 + 多节点时钟偏差矩阵,支持强制纠偏。 Native NTP probing with a multi-node clock-skew matrix and forced correction.

资产画像Asset profile

全量硬件与 SMART 寿命:CPU、内存槽、RAID、网卡、GPU、温度、固态寿命;可导出 md / PDF。 Full hardware and SMART health: CPU, DIMMs, RAID, NICs, GPU, thermals, SSD wear. Export as md / PDF.

知识与接口Docs & API

知识中心自动聚合平台规范与项目文档;内置 30+ REST 接口在线调试控制台。 A knowledge hub aggregating platform specs and project docs, plus an in-browser console for 30+ REST endpoints.

资源监控Resource monitor

CPU / 内存 / 磁盘持久化曲线,进程级 RSS 排行,请求频率与异常快照。 Persisted CPU / memory / disk curves, per-process RSS ranking, request rates and anomaly snapshots.

账号与审计Accounts & audit

独立账号体系(不依赖第三方),支持角色、提权与全量操作审计。 A self-contained account system with roles, elevation and a full operation audit trail.

架构Architecture

纯标准库为主,只在 SSH / SFTP 引入两个经过检验的依赖。 Mostly standard library; two vetted dependencies for SSH / SFTP only.

# 单二进制,前端资源编译期嵌入
cmd/psupd/          守护进程入口
internal/
  config/          ops.toml 解析与三层校验
  account/         账号 + 会话 + 提权 + 审计
  svc/             supervisor 管理(前缀分类)
  appman/          apps/ 扫描 + app.toml 契约
  upgrade/         增量包 / 单文件替换 + 回滚
  terminal/        Go 原生 SSH + SFTP + 监控
  timesync/        NTP 探测与偏差矩阵
  webui/           HTTP 服务 + REST API
  web/             前端静态资源(go:embed 编入)

单二进制Single binary

前端资源编译期嵌入,部署不再需要携带 web 目录。 Frontend assets are embedded at compile time — no web folder to ship.

依赖最小化Minimal deps

CGO_ENABLED=0 静态编译,目标机无需 Python 或额外系统包。 Statically compiled with CGO_ENABLED=0 — no Python or extra packages on target.

配置分层Layered config

代码默认 < 跨机通用项 < 本机特定项,异机部署零改写。 Defaults < shared settings < host-specific settings — no edits when moving hosts.

离线可用Offline ready

无 CDN、无运行时拉取,内网环境开箱即用。 No CDN, no runtime fetch — works in air-gapped networks.

快速开始Quick start

构建一次,之后只需上传一个文件夹。 Build once, then upload a single folder.

# 1. 构建(离线,纯标准库) $ ./scripts/build-local.sh ==> 完成:bin/psupd 自报版本 = vX.Y.Z # 2. 部署(目标机无需源码与 Go) $ sudo ./deploy.sh ✓ 服务已注册并启动 # 3. 访问控制台 $ open http://<host>:5013