Skip to content
Merged

Dev #10

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8cc801f
:bookmark: 升级版本.
lijiahangmax Apr 28, 2024
8c8098e
:zap: 修改日志默认样式.
lijiahangmax May 3, 2024
69bad68
:zap: 分离批量执行模块.
lijiahangmax May 4, 2024
320c4c2
:sparkles: 优化传输列表显示.
lijiahangmax May 6, 2024
b19911b
:sparkles: 主机在线会话.
lijiahangmax May 7, 2024
908c4a3
:sparkles: 在线会话.
lijiahangmax May 7, 2024
1379150
:zap: 修改配置.
lijiahangmax May 7, 2024
f416e63
:sparkles: 通用大文件上传组件.
lijiahangmax May 7, 2024
f323690
:construction: 批量上传.
lijiahangmax May 7, 2024
0774662
:hammer: 批量上传任务.
lijiahangmax May 8, 2024
26172ea
:hammer: 批量上传任务.
lijiahangmax May 8, 2024
42f1c6f
:zap: 修改空返回值类型.
lijiahangmax May 8, 2024
af00e71
:construction: 批量上传.
lijiahangmax May 8, 2024
cf17cf9
:hammer: 批量上传.
lijiahangmax May 9, 2024
cd312ef
:hammer: 批量上传.
lijiahangmax May 10, 2024
564e40a
:hammer: 查询上传任务.
lijiahangmax May 10, 2024
0a43e5d
:hammer: 批量上传.
lijiahangmax May 10, 2024
978d94d
:sparkles: 批量上传优化.
lijiahangmax May 10, 2024
792ec06
:sparkles: 上传任务列表.
lijiahangmax May 10, 2024
049d102
:sparkles: 文件上传详情.
lijiahangmax May 11, 2024
69a2cff
:zap: 上传状态优化.
lijiahangmax May 11, 2024
cce6da2
:pencil: 修改文档.
lijiahangmax May 12, 2024
f7a7b69
:zap: 优化上传数量显示.
lijiahangmax May 13, 2024
0bde1b0
:whale: 修改 docker 配置.
lijiahangmax May 13, 2024
1e819ea
:pencil: 修改文档.
lijiahangmax May 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</h1>

`orion-ops-pro`
是一款现代化、高颜值的一站式智能运维管理平台,集资产管理、资产授权、批量执行、计划任务、WebShell、WebSftp、角色管理、系统管理等功能于一体,致力于简化运维团队的治理工作。
是一款现代化、高颜值的一站式智能运维管理平台,集资产管理、资产授权、批量执行、批量上传、计划任务、WebShell、WebSftp、角色管理、系统管理等功能于一体,致力于简化运维团队的治理工作。

<p style="text-align: left">
<a target="_blank" style="text-decoration: none" href="https://app.codacy.com/gh/lijiahangmax/orion-ops-pro/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade">
Expand All @@ -26,11 +26,11 @@
</a>
</p>

当前版本: **1.0.6**
当前版本: **1.0.7**

**github:** https://github.com/lijiahangmax/orion-ops-pro
**gitee:** https://gitee.com/lijiahangmax/orion-ops-pro
**文档:** https://lijiahangmax.gitee.io/orion-ops-pro/#/
**文档:** https://lijiahangmax.github.io/orion-ops-pro/#/
**demo:** http://101.43.254.243:1081/

演示账号: `admin`
Expand All @@ -47,17 +47,17 @@
* **权限控制**: 全面管理用户角色, 支持动态菜单配置和强制下线等功能。
* **在线终端**: 提供便捷的在线 Web 终端服务, 支持快捷命令、自定义快捷键和主题风格。
* **文件管理**: 实现远程主机大文件的批量上传、下载和在线编辑等操作。
* **批量操作**: 支持远程主机批量执行主机命令。
* **批量操作**: 支持远程主机批量执行主机命令、多主机文件分发
* **计划任务**: 支持配置 cron 表达式, 定时执行主机命令。
* **操作审计**: 记录用户操作日志,确保操作可追溯, 提高系统安全性。

## 快速开始

* [docker安装](https://lijiahangmax.gitee.io/orion-ops-pro/#/quickstart/docker-install)
* [普通安装](https://lijiahangmax.gitee.io/orion-ops-pro/#/quickstart/install)
* [更新日志](https://lijiahangmax.gitee.io/orion-ops-pro/#/about/change-log)
* [操作手册](https://lijiahangmax.gitee.io/orion-ops-pro/#/operator/asset)
* [常见问题](https://lijiahangmax.gitee.io/orion-ops-pro/#/quickstart/faq)
* [docker安装](https://lijiahangmax.github.io/orion-ops-pro/#/quickstart/docker-install)
* [普通安装](https://lijiahangmax.github.io/orion-ops-pro/#/quickstart/install)
* [更新日志](https://lijiahangmax.github.io/orion-ops-pro/#/about/change-log)
* [操作手册](https://lijiahangmax.github.io/orion-ops-pro/#/operator/asset)
* [常见问题](https://lijiahangmax.github.io/orion-ops-pro/#/quickstart/faq)

## 技术栈

Expand All @@ -84,10 +84,15 @@
![执行日志](https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/3/22/06d02d38-70ef-43c2-950c-9f8c73a105ba.png "执行日志")
![执行记录](https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/3/22/0e474cc2-f7cf-49bc-be3c-f6445783ad7c.png "执行记录")

> 批量上传

![批量上传任务](https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/5/12/1e9d0c74-4ef7-4322-ae17-42085b7ba552.png "批量上传任务")
![批量上传中](https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/5/12/a94a6d96-0969-4205-91fb-4c6f8cf092a8.png "批量上传中")

> 计划任务

![计划任务](https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/4/15/ba5c0635-50c1-4c43-8062-3470ad33830e.png "计划任务")
![计划任务编辑](https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/4/20/b6ba7ec0-011f-48ff-a36e-c8d93bd1f75c.png "计划任务编辑")
![计划任务](https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/4/15/ba5c0635-50c1-4c43-8062-3470ad33830e.png "计划任务")

> 用户管理

Expand Down
6 changes: 2 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.3'
services:
orion-ops-pro:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro:1.0.6
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro:1.0.7
ports:
- 1081:80
environment:
Expand All @@ -19,9 +19,7 @@ services:
- orion-ops-pro-db
- orion-ops-pro-redis
orion-ops-pro-db:
build:
context: .
dockerfile: docker/mysql/Dockerfile
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro-mysql:1.0.7
privileged: true
ports:
- 3307:3306
Expand Down
10 changes: 5 additions & 5 deletions docker/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM mysql:8.0.28
COPY sql/init-1-schema-databases.sql /tmp
COPY sql/init-2-schema-tables.sql /tmp
COPY sql/init-3-schema-quartz.sql /tmp
COPY sql/init-4-data.sql /tmp
COPY docker/mysql/my.cnf /etc/mysql/conf.d/my.cnf
COPY ./sql/init-1-schema-databases.sql /tmp
COPY ./sql/init-2-schema-tables.sql /tmp
COPY ./sql/init-3-schema-quartz.sql /tmp
COPY ./sql/init-4-data.sql /tmp
COPY ./my.cnf /etc/mysql/conf.d/my.cnf
RUN cat /tmp/init-1-schema-databases.sql >> /tmp/init.sql && \
cat /tmp/init-2-schema-tables.sql >> /tmp/init.sql && \
cat /tmp/init-3-schema-quartz.sql >> /tmp/init.sql && \
Expand Down
7 changes: 7 additions & 0 deletions docker/mysql/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#/bin/bash
version=1.0.7
cp -r ../../sql ./sql
docker build -t orion-ops-pro-mysql:${version} .
rm -rf ./sql
docker tag orion-ops-pro-mysql:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro-mysql:${version}
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro-mysql:${version}
10 changes: 8 additions & 2 deletions docker/orion-ops-pro/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
mv ../../orion-ops-launch/target/orion-ops-launch.jar ./
#/bin/bash
version=1.0.7
mv ../../orion-ops-launch/target/orion-ops-launch.jar ./orion-ops-launch.jar
mv ../../orion-ops-ui/dist ./dist
docker build -t orion-ops-pro:1.0.6 .
docker build -t orion-ops-pro:${version} .
rm -f ./orion-ops-launch.jar
rm -rf ./dist
docker tag orion-ops-pro:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro:${version}
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro:${version}
25 changes: 15 additions & 10 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</h1>

`orion-ops-pro`
是一款现代化、高颜值的一站式智能运维管理平台,集资产管理、资产授权、批量执行、计划任务、WebShell、WebSftp、角色管理、系统管理等功能于一体,致力于简化运维团队的治理工作。
是一款现代化、高颜值的一站式智能运维管理平台,集资产管理、资产授权、批量执行、批量上传、计划任务、WebShell、WebSftp、角色管理、系统管理等功能于一体,致力于简化运维团队的治理工作。

<p style="text-align: left">
<a target="_blank" style="text-decoration: none" href="https://app.codacy.com/gh/lijiahangmax/orion-ops-pro/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade">
Expand All @@ -26,11 +26,11 @@
</a>
</p>

当前版本: **1.0.6**
当前版本: **1.0.7**

**github:** https://github.com/lijiahangmax/orion-ops-pro
**gitee:** https://gitee.com/lijiahangmax/orion-ops-pro
**文档:** https://lijiahangmax.gitee.io/orion-ops-pro/#/
**文档:** https://lijiahangmax.github.io/orion-ops-pro/#/
**demo:** http://101.43.254.243:1081/

演示账号: `admin`
Expand All @@ -47,17 +47,17 @@
* **权限控制**: 全面管理用户角色, 支持动态菜单配置和强制下线等功能。
* **在线终端**: 提供便捷的在线 Web 终端服务, 支持快捷命令、自定义快捷键和主题风格。
* **文件管理**: 实现远程主机大文件的批量上传、下载和在线编辑等操作。
* **批量操作**: 支持远程主机批量执行主机命令。
* **批量操作**: 支持远程主机批量执行主机命令、多主机文件分发
* **计划任务**: 支持配置 cron 表达式, 定时执行主机命令。
* **操作审计**: 记录用户操作日志,确保操作可追溯, 提高系统安全性。

## 快速开始

* [docker安装](https://lijiahangmax.gitee.io/orion-ops-pro/#/quickstart/docker-install)
* [普通安装](https://lijiahangmax.gitee.io/orion-ops-pro/#/quickstart/install)
* [更新日志](https://lijiahangmax.gitee.io/orion-ops-pro/#/about/change-log)
* [操作手册](https://lijiahangmax.gitee.io/orion-ops-pro/#/operator/asset)
* [常见问题](https://lijiahangmax.gitee.io/orion-ops-pro/#/quickstart/faq)
* [docker安装](/quickstart/docker-install)
* [普通安装](/quickstart/install)
* [更新日志](/about/change-log)
* [操作手册](/operator/asset)
* [常见问题](/quickstart/faq)

## 技术栈

Expand All @@ -84,10 +84,15 @@
![执行日志](./assert/img/batch_exec_log.png "执行日志")
![执行记录](./assert/img/batch_exec_record.png "执行记录")

> 批量上传

![批量上传任务](./assert/img/batch_upload_form.png "批量上传任务")
![批量上传中](./assert/img/batch_upload_uploading.png "批量上传中")

> 计划任务

![计划任务](./assert/img/exec_job.png "计划任务")
![计划任务编辑](./assert/img/exec_job_edit.png "计划任务编辑")
![计划任务](./assert/img/exec_job.png "计划任务")

> 用户管理

Expand Down
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# orion-ops-pro <small>1.0.6</small>
# orion-ops-pro <small>1.0.7</small>

> 一款开箱即用的运维平台。

Expand Down
3 changes: 2 additions & 1 deletion docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
* 操作手册
* [资产管理](operator/asset.md)
* [主机运维](operator/host-ops.md)
* [命令执行](operator/exec.md)
* [运维审计](operator/asset-audit.md)
* [批量执行](operator/exec.md)
* [计划任务](operator/job.md)
* [用户管理](operator/user.md)
* [系统管理](operator/system.md)
12 changes: 12 additions & 0 deletions docs/about/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
* 执行完成菜单 sql 后请刷新缓存 `系统设置` > `系统菜单` > `刷新缓存`
* 执行完成字典 sql 后请刷新缓存 `系统设置` > `数据字典项` > `刷新缓存`

### v1.0.7

`2024-05-13` `release`

* 🐞 修复 查看计划任务日志时提示日志不存在
* 🩰 修改 命令执行日志 UI 修改
* 🌈 新增 文件传输列表添加操作栏
* 🌈 新增 主机在线会话功能
* 🌈 新增 文件批量上传功能

[如何升级](/update/v1.0.7.md)

### v1.0.6

`2024-04-26` `release`
Expand Down
Binary file added docs/assert/img/batch_upload_form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assert/img/batch_upload_uploading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions docs/operator/asset-audit.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
### 连接日志

在主机终端页面打开的 `SSH` `SFTP` 连接都会记录下来
查看主机终端连接记录

* 详情: 查看连接详情
* 断开: 断开会话连接
* 下线: 强制断开会话连接
* 删除: 删除连接记录
* 清理: 根据条件清理数据

### 在线会话

查看连接中的主机会话。

* 下线: 强制断开会话连接

### 文件操作日志

查看用户 SFTP 操作日志, 是从用户操作日志中过滤查询。
Expand Down
102 changes: 55 additions & 47 deletions docs/operator/exec.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
### 批量执行
### 命令执行

批量执行 ssh 主机 shell 脚本。

⚡ 如果只需要保存日志的原始输出则需要修改 `application.yaml` `app.exec-log.append-ansi` 为 `false`

* 重置: 重置全部参数
* 执行: 执行所输入的命令
* 返回: 返回到执行命令页面
* 从模板中选择: 从模板中选择需要执行的命令
* 执行历史: 点击历史命令可以快速填入

### 批量执行日志
### 执行日志

查看批量执行任务日志。

Expand All @@ -22,28 +24,34 @@
* 日志: 查看执行日志, ctrl + 左键点击会用新页面打开
* 下载: 下载执行日志

### 计划任务
### 批量上传

维护计划任务, 定时执行命令
将文件批量上传到远程服务器

* 新增: 新增计划任务
* 详情: 查看计划任务详情
* 修改: 修改计划任务
* 状态: 修改计划任务状态
* 手动触发: 手动触发计划任务
* 删除: 删除计划任务
* 重置: 重置表单参数
* 返回: 返回到表单页面
* 开始上传: 执行文件上传
* 取消上传: 取消文件上传
* 清空: 清空已选择的文件
* 选择文件: 批量选择上传的文件
* 选择文件夹: 选择上传的文件夹

### 计划任务日志
> 上传路径可以使用内置变量来替换。

查看计划任务执行日志
| 参数 | 描述 | 参数示例 |
|:------------|:------|-------------|
| ${username} | 用户名 | admin |
| ${home} | 用户家目录 | /home/admin |

* 清空: 清空执行日志
* 删除: 删除执行日志
* 命令: 查看执行时的命令
* 参数: 查看执行时的参数
* 中断: 中断命令执行
* 日志: 查看执行日志, ctrl + 左键点击会用新页面打开
* 下载: 下载执行日志
### 上传任务

查看批量上传任务列表。

* 上传: 跳转到批量上传页面
* 清空: 清空上传任务
* 删除: 删除上传任务
* 详情: 查看上传任务详情
* 取消: 取消文件上传

### 执行模板

Expand All @@ -54,7 +62,7 @@
* 修改: 修改执行模板
* 删除: 删除执行模板

> 日志面板快捷键
### 日志面板快捷键

* 回车: `Enter`
* 向上滚动一行: `↑`
Expand All @@ -66,33 +74,33 @@
* 搜索: `ctrl` `F`
* 清空: `ctrl` `L`

> 命令内置参数
### 命令内置参数

⚡ 使用 `@{{ xxx }}` 来替换命令参数

| 参数 | 描述 |
|:----------------|:--------------------------|
| source | 执行来源 (BATCH/JOB) |
| sourceId | 执行来源id (JOB特有) |
| seq | 执行序列 (JOB特有) |
| userId | 执行用户id |
| username | 执行用户名 |
| execId | 执行记录id |
| hostId | 执行主机id |
| hostName | 执行主机名称 |
| hostCode | 执行主机编码 |
| hostAddress | 执行主机地址 |
| hostUsername | 执行主机用户名 |
| osType | 执行主机系统版本 |
| port | SSH 端口 |
| charset | SSH 编码集 |
| scriptExec | 是否使用脚本执行 |
| scriptPath | 脚本文件路径 |
| uuid | 生成任务维度 uuid |
| uuidShort | 生成任务维度 uuid 无 '-' |
| hostUuid | 生成机器维度 uuid |
| hostUuidShort | 生成机器维度 uuid 无 '-' |
| timestampMillis | 时间戳毫秒 |
| timestamp | 时间戳 |
| date | 执行时间 yyyy-MM-dd |
| datetime | 执行时间 yyyy-MM-dd HH:mm :ss |
| 参数 | 描述 | 参数示例 |
|:----------------|:---------------------------|-------------------------------------------------|
| source | 执行来源 (BATCH/JOB) | JOB |
| sourceId | 执行来源id (JOB特有) | 6 |
| seq | 执行序列 (JOB特有) | 920 |
| userId | 执行用户id (JOB为0) | 1 |
| username | 执行用户名 (JOB为system) | admin |
| execId | 执行记录id | 2000 |
| hostId | 执行主机id | 1 |
| hostName | 执行主机名称 | server-127.0.0.1 |
| hostCode | 执行主机编码 | server |
| hostAddress | 执行主机地址 | 127.0.0.1 |
| hostUsername | 执行主机用户名 | root |
| osType | 执行主机系统版本 | LINUX |
| port | SSH 端口 | 22 |
| charset | SSH 编码集 | UTF-8 |
| scriptExec | 是否使用脚本执行 (0否1是) | 1 |
| scriptPath | 脚本文件路径 | /root/orion/orion-ops-pro/script/exec_2000_1.sh |
| uuid | 生成任务维度 uuid | 82b20e52-cea9-455b-a0b4-e4e25654e22b |
| uuidShort | 生成任务维度 uuid 无 '-' | 82b20e52cea9455ba0b4e4e25654e22b |
| hostUuid | 生成机器维度 uuid | 2687b09e-1046-4e8d-9cc2-a7e697836b88 |
| hostUuidShort | 生成机器维度 uuid 无 '-' | 2687b09e10464e8d9cc2a7e697836b88 |
| timestampMillis | 时间戳毫秒 | 1715173200848 |
| timestamp | 时间戳 | 1715173200 |
| date | 执行时间 `yyyy-MM-dd` | `2024-01-01` |
| datetime | 执行时间 `yyyy-MM-dd HH:mm:ss` | `2024-01-01 21:00:00` |
Loading