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
e499228a
Commit
e499228a
authored
May 14, 2018
by
wojiushixiaobai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
离线升级文档更新
parent
a5179b56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
upgrade.rst
docs/upgrade.rst
+14
-6
No files found.
docs/upgrade.rst
View file @
e499228a
...
...
@@ -43,7 +43,7 @@
$ docker run --name jms_guacamole -d \
-p 8081:8080 -v /opt/guacamole/key:/config/guacamole/key \
-e JUMPSERVER_KEY_DIR=/config/guacamole/key \
-e JUMPSERVER_SERVER=http://<填写Jumpserver
服务器的IP地址>:8080
\
-e JUMPSERVER_SERVER=http://<填写Jumpserver
的url地址>
\
registry.jumpserver.org/public/guacamole:latest
# 确定升级完成后,可以删除备份容器
...
...
@@ -58,38 +58,46 @@
说明: 如果是新开的终端,别忘了 source /opt/py3/bin/activate
1. 备份jumpserver
1. 备份jumpserver
数据库表结构及录像文件
::
$ jumpserver_backup=/tmp/jumpserver_backup
$ mkdir -p $jumpserver_backup
$ cd /opt/jumpservrer
$ cp -r ./ $jumpserver_backup
$ cp config.py $jumpserver_backup
$ cp -r data/media $jumpserver_backup/
$ for app in audits common users assets ops perms terminal;do
mkdir -p $jumpserver_backup/${app}_migrations
cp apps/${app}/migrations/*.py $jumpserver_backup/${app}_migrations
done
2. 备份数据库,已被不时之需
::
$ mysqldump -u你的数据库账号 -h数据库地址 -p 数据库名称 > $jumpserver_backup/db_backup.sql
3. 切换分支或下载离线包, 更新代码
::
$ cd /opt
$ mv jumpserver jumpserver_bak
$ git clone https://github.com/jumpserver/jumpserver.git
$ cd jumpserver && git checkout master # or other branch
$ git pull
4. 还原录像文件
4. 还原
数据库表结构文件及
录像文件
::
$ for app in audits common users assets ops perms terminal;do
cp $jumpserver_backup/${app}_migrations/*.py apps/${app}/migrations/
done
$ cp $jumpserver_backup/config.py .
$ cp -r $jumpserver_backup/media/* data/media/
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