JumpServer 堡垒机数据迁移(所有的数据均存在数据中)

1、优先停用服务
./jmsctl.sh start

2、升级及迁移请保持 SECRET_KEY 与旧版本一致,否则会导致数据库加密数据无法解密
请修改 /opt/jumpserver/config/config.txt对应 SECRET_KEY=的值

3、备份数据库
cd jumpserver-installer-v2.25.3
./jmsctl.sh backup_db

4、还原数据库
cd jumpserver-installer-v2.25.3
./jmsctl.sh restore_db /opt/jumpserver/db_backup/jumpserver-installer-v2.25.3.sql

5、启动服务
./jmsctl.sh start

JumpServer 堡垒机离在线安装(使用内置数据库)

1、先下载离线安装包(jumpserver-offline-installer-v2.25.3
2、解压安装包(默认安装到/opt目录中)
cd /opt
tar -xf jumpserver-offline-installer-v2.25.3-amd64-70.tar.gz
cd jumpserver-offline-installer-v2.25.3-amd64-70

3、开始安装及启动
cd /jumpserver-offline-installer-v2.25.3-amd64-70
# 安装
./jmsctl.sh install

# 启动
./jmsctl.sh start

# 安装完成后配置文件 /opt/jumpserver/config/config.txt

4、启动服务
cd jumpserver-offline-release-v2.25.3-amd64-70

# 启动
./jmsctl.sh start

# 停止
./jmsctl.sh down

# 卸载
./jmsctl.sh uninstall

# 帮助
./jmsctl.sh -h

——————————————————————-
JumpServer堡垒机在线安装
# 默认会安装到 /opt/jumpserver-installer-v2.25.3 目录
curl -sSL https://github.com/jumpserver/jumpserver/releases/download/v2.25.3/quick_start.sh | bash
cd /opt/jumpserver-installer-v2.25.3

# 安装完成后配置文件 /opt/jumpserver/config/config.txt

cd /opt/jumpserver-installer-v2.25.3

# 启动
./jmsctl.sh start

# 停止
./jmsctl.sh down

# 卸载
./jmsctl.sh uninstall

# 帮助
./jmsctl.sh -h