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

83 lines
1.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 概述
GoSuv是GO语言重写的类supervisor的一个进程管理程序在[codeskyblue/gosuv](https://github.com/codeskyblue/gosuv)基础上增加了环境变量的配置以及主机名称的配置等用rice封装对静态文件进行了封装单文件运行简单易用界面美感十足且对用户友好
## 特点
- [x] web 控制与配置页面
- [x] 启动, 停止, 日志跟踪, 重载配置
- [x] 实时查看日志
- [x] 添加服务
- [x] 编辑服务
- [x] 删除服务
- [x] 可视化查看服务对应的cpu与内存
- [x] HTTP 基本安全认证
- [x] 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](http://localhost:11313)
![例子](docs/des.gif)
## 配置
默认配置文件都放在 `$HOME/.gosuv/`
* 项目文件名 programs.yml
* 服务器配置文件名: config.yml
验证信息配置
```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](README.md)
## 贡献人
- [Docking](http://miaomia.com)
- [wutiezhong](https://blog.csdn.net/tiezhong2004)