Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
3aff8514
Commit
3aff8514
authored
Nov 27, 2018
by
wojiushixiaobai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update]更新迁移文档
parent
d8eed91d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
installation.rst
docs/installation.rst
+1
-0
migration.rst
docs/migration.rst
+65
-0
No files found.
docs/installation.rst
View file @
3aff8514
...
...
@@ -11,3 +11,4 @@
setup_by_optimization
start_automatically
upgrade
migration
docs/migration.rst
0 → 100644
View file @
3aff8514
服务迁移
-------------
对 Jumpserver 服务进行迁移, 只需要备份 数据库 和 jumpserver 目录即可
1. 备份数据到新的服务器
.. code-block:: shell
# 导出 jumpserver 数据库到新的服务器
$ mysqldump -uroot -p jumpserver > /opt/jumpserver.sql
# 把 jumpserver.sql 拷贝到新的服务器 /opt 目录
# 复制 Jumpserve 目录到新的服务器 /opt 目录
2. 配置新服务器 (注意 mysql-server 的版本要与旧服务器一致)
.. code-block:: shell
$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
$ export LC_ALL=zh_CN.UTF-8
$ echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf
$ yum -y install wget gcc epel-release git
$ yum -y install mariadb mariadb-devel mariadb-server
$ 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 --upgrade pip setuptools
$ pip install -r requirements.txt
3. 修改配置文件
.. code-block:: shell
$ cd /opt/jumpserver
$ vi conf.py
# 把数据库和 redis 信息修改并保存
4. 启动 jumpserver
.. code-block:: shell
$ ./jms start all
5. 其他组件参考安装文档重新设置即可
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment