• 欢迎访问显哥博客,本网站纯属学习技术,绝无商业用途,欢迎小伙伴们共同学习!研究技术!QQ:52249909 加我QQ
  • 世界75亿人,这么小的概率,能认识你,是我一生的幸运,不妨加个QQ接触一下:52249909 加我QQ

Jumpserver跳板机迁移服务解决方案【显哥出品,必为精品】

技术栈 lixian 4年前 (2020-08-29) 21898次浏览 3个评论 扫描二维码

1.备份数据到新的服务器

# 导出 jumpserver 数据库到新的服务器
$ mysqldump -uroot -p jumpserver > /opt/jumpserver.sql
# 把 jumpserver.sql 拷贝到新的服务器 /opt 目录
# 复制 Jumpserve 目录到新的服务器 /opt 目录

2.配置新服务器 (注意 mysql-server 的版本要与旧服务器一致)

$ yum -y install wget gcc epel-release git
$ yum -y install mariadb mariadb-devel mariadb-server mariadb-shared
$ yum -y install redis

$ systemctl enable redis
$ systemctl enable mariadb
$ systemctl start redis
$ systemctl start mariadb

$ mysql -uroot
> create database jumpserver default charset 'utf8';
> grant all on jumpserver.* to 'jumpserver'@'127.0.0.1' identified by 'weakPassword';
> use jumpserver;
> source /opt/jumpserver.sql;
> quit

$ yum -y install python36 python36-devel

$ cd /opt
$ python3.6 -m venv py3
$ source /opt/py3/bin/activate

$ cd /opt/jumpserver/requirements
$ yum -y install $(cat rpm_requirements.txt)
$ pip install wheel
$ pip install --upgrade pip setuptools
$ pip install -r requirements.txt

3.修改配置文件

$ cd /opt/jumpserver
$ vi config.yml
# 把数据库和 redis 信息修改并保存

4.启动 jumpserver

$ ./jms start

5.其他组件参考安装文档重新设置即可


本站博主 , 版权所有丨如未注明 , 均为原创
转载请注明原文链接:Jumpserver跳板机迁移服务解决方案【显哥出品,必为精品】
喜欢 (1)

您必须 登录 才能发表评论!

(3)个小伙伴在吐槽
  1. I have read your article carefully and I agree with you very much. This has provided a great help for my thesis writing, and I will seriously improve it. However, I don't know much about a certain place. Can you help me?
    gate.io2023-03-10 17:43
  2. docker部署的 只要俩秘钥不变 数据库还原后启动就行
    匿名2021-01-28 15:42