diff --git a/.gitignore b/.gitignore index 2895981..e0dafec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ info.log -xmp* -data.db \ No newline at end of file +msm* +vue-minecraft/node_modules +data.db +.data* +config.yaml \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..edc6fd4 --- /dev/null +++ b/README.md @@ -0,0 +1,50 @@ +基于golang的进程管理工具 + +# 基础功能 +- 类似screen的进程管理 +- 提供web ui可视化操作 +- 基于Elasticsearch的日志管理 +- 三种角色的权限管理 +- 进程性能监控 +- 进程状态推送 + +# 终端类型 +## pty +基于伪终端实现,支持ansi字符、快捷键,仅支持linux +## std +基于stdin、stdout管道实现,支持所有平台 + +# 角色 + +| 角色 | 角色管理 | 进程创建 | 操控进程 | 日志查看 | +| ----- | -------- | -------- | -------- | ---- | +| root | ✔ | ✔ | ✔ | ✔ | +| admin | × | × | ✔ | ✔ | +| user | × | × | 需配置 | × | + + +# 如何使用 +## 启动进程 +### windows +下载windows版本双击运行 +### linux +下载linux版本 +使用命令 +``` +chmod 777 ./xpm +./xpm +``` +## web界面 +访问http://[ip]:8797 +默认账号密码 root/root + +# 界面 +### 进程 + + +### 终端 + + +### 日志 + + diff --git a/route/templates/index.html b/route/templates/index.html index a185ec6..331f0f7 100644 --- a/route/templates/index.html +++ b/route/templates/index.html @@ -1 +1 @@ -
\r\n {{ item.name == \"console\" ? \"\" : item.name }}\r\n
\r\n\r\n