Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: 更新jmsctl #638

Merged
merged 2 commits into from
May 11, 2024
Merged
Changes from all commits
Commits
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
31 changes: 24 additions & 7 deletions docs/installation/jmsctl_sh.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,45 @@
- JumpServer 默认内置了命令行运维工具 - jmsctl,通过执行 jmsctl help 命令,可以查看相关的帮助文档。

```sh
JumpServer部署管理脚本
JumpServer 部署管理脚本

Usage:
./jmsctl.sh [COMMAND] [ARGS...]
./jmsctl.sh --help

Installation Commands:
install 安装 JumpServer 服务
upgrade [version] 升级 JumpServer 服务
check_update 检查 JumpServer 更新
reconfig 重新配置 JumpServer 服务

Management Commands:

Management Commands:
config 配置工具,执行 jmsctl config --help,查看帮助
start 启动 JumpServer 服务
stop 停止 JumpServer 服务
close 关闭 JumpServer 服务
restart 重启 JumpServer 服务
status 查看 JumpServer 服务运行状态
down 脱机 JumpServer 服务
uninstall 卸载 JumpServer 服务

More Commands:
load_image 加载 Docker 镜像
backup_db 备份 JumpServer 数据库
restore_db [file] 通过数据库备份文件恢复数据
raw 执行原始 docker compose 命令
tail [service] 查看 Service 日志
```

## 2 配置工具 - jmsctl config
!!! tip ""
- JumpServer 默认内置了配置工具 - jmsctl config,通过执行 jmsctl config help 命令,可以查看相关的帮助文档。

```sh
Usage:
./jmsctl.sh config [ARGS...]
-h, --help

Args:
ntp 配置 NTP 同步
init 初始化 config 配置文件
port 配置 JumpServer 服务端口
ssl 配置 Web SSL
env 配置 JumpServer 环境变量
```