You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gosuv/README.md

1.7 KiB

概述

GoSuv是GO语言重写的类supervisor的一个进程管理程序codeskyblue/gosuv基础上增加了环境变量的配置以及主机名称的配置等用rice封装对静态文件进行了封装单文件运行简单易用界面美感十足且对用户友好

特点

  • web 控制与配置页面
    • 启动, 停止, 日志跟踪, 重载配置
    • 实时查看日志
    • 添加服务
    • 编辑服务
    • 删除服务
    • 可视化查看服务对应的cpu与内存
  • HTTP 基本安全认证
  • Github webhook

使用

  • 启动服务

    gosuv start-server
    

查看服务状态

$ gosuv status
PROGRAM NAME            STATUS
test                    running
test_again              stopped

$ gosuv stop test
$ gosuv start test

默认端口 11113 本机测试请使用http://localhost:11313

例子

配置

默认配置文件都放在 $HOME/.gosuv/

  • 项目文件名 programs.yml
  • 服务器配置文件名: config.yml

验证信息配置

server:
    servername: locllhost
    httpauth:
      enabled: false
      username: uu
      password: pp
      addr: :11313
client:
  server_url: http://localhost:11313

默认日志文件位置

$HOME/.gosuv/log/

http RESTFul 接口

获取或更新

<GET|PUT> /api/programs/:name

添加新的服务

POST /api/programs

删除服务

DELETE /api/programs/:name

待续

内容不是很多,还是推荐能看懂英语的去看英文的README

贡献人