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
b9e58de3
Unverified
Commit
b9e58de3
authored
Sep 07, 2018
by
wojiushixiaobai
Committed by
GitHub
Sep 07, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1793 from wojiushixiaobai/docs
[Update]修改升级文档
parents
789f7575
298ec862
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
faq_linux.rst
docs/faq_linux.rst
+0
-9
upgrade.rst
docs/upgrade.rst
+11
-0
No files found.
docs/faq_linux.rst
View file @
b9e58de3
...
@@ -10,15 +10,6 @@ Linux 资产连接错误排查思路
...
@@ -10,15 +10,6 @@ Linux 资产连接错误排查思路
(3). 检查资产的python,确定版本不小于2.6,不高于3.x
(3). 检查资产的python,确定版本不小于2.6,不高于3.x
(4). 检查资产的ssh策略,确保可以被jumpserver应用访问
(4). 检查资产的ssh策略,确保可以被jumpserver应用访问
# 案例参考. 资产是centos5.x Python版本 2.4,
$ yum -y install python26
$ mv /usr/bin/python /usr/bin/python.bak
$ ln -s /usr/bin/python2.6 /usr/bin/python
# 修改 /bin/yum 使用原来的python
$ sed -i 's@/usr/bin/python$@/usr/bin/python2.4@g' /bin/yum
1. 检查终端是否在线
1. 检查终端是否在线
::
::
...
...
docs/upgrade.rst
View file @
b9e58de3
...
@@ -10,6 +10,17 @@
...
@@ -10,6 +10,17 @@
::
::
# 为了保证能顺利升级,请先检查数据库表结构文件是否完整
$ cd /opt/jumpserver/apps
$ for d in $(ls); do if [ -d $d ] && [ -d $d/migrations ]; then ll ${d}/migrations/*.py | grep -v __init__.py; fi; done
# 新开一个终端,连接到 jumpserver 的数据库服务器
$ mysql -uroot -p
> use jumpserver;
> select app,name from django_migrations where app in('assets','audits','common','ops','orgs','perms','terminal','users') order by app asc;
# 如果左右对比信息不一致,请勿升级,升级必然失败
# 升级前请做好 jumpserver 与 数据库 备份,谨防意外,具体的备份命令可以参考离线升级
# 升级前请做好 jumpserver 与 数据库 备份,谨防意外,具体的备份命令可以参考离线升级
$ cd /opt/jumpserver
$ cd /opt/jumpserver
$ git pull
$ git pull
...
...
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