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
fa565462
Commit
fa565462
authored
May 24, 2019
by
wojiushixiaobai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Add]增加卸载文档
parent
d2bc1993
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
6 deletions
+74
-6
migration.rst
docs/migration.rst
+1
-6
step_by_step.rst
docs/step_by_step.rst
+1
-0
uninstall.rst
docs/uninstall.rst
+72
-0
No files found.
docs/migration.rst
View file @
fa565462
...
...
@@ -2,7 +2,7 @@
-------------
对 Jumpserver 服务进行迁移, 只需要备份 "数据库" 和 "jumpserver目录" 即可
注:1.4.5及之后的版本迁移, 只需要迁移 "数据库" "配置文件" 和 "录像目录"
注:1.4.5
及之后的版本迁移, 只需要迁移 "数据库" "配置文件" 和 "录像目录"
1. 备份数据到新的服务器
...
...
@@ -17,12 +17,7 @@
.. 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
...
...
docs/step_by_step.rst
View file @
fa565462
...
...
@@ -13,3 +13,4 @@
start_automatically
upgrade
migration
uninstall
docs/uninstall.rst
0 → 100644
View file @
fa565462
卸载文档
-------------
说明
~~~~~~~
- 确保已经停止 jms coco guacamole 进程
- 确定数据已经处理完毕
- 此操作不可逆
- 请自行替换文中相关路径为你的实际环境路径
1. 参照一步一步安装文档进行安装的使用下面方式进行卸载
.. code-block:: shell
$ rm -rf /opt/jumpserver # jumpserver 目录
$ rm -rf /opt/coco # coco 目录
$ rm -rf /opt/docker-guacamole # guacamole 目录
$ rm -rf /opt/py3 # python3 虚拟环境
$ rm -rf /config # guacamole 目录
$ rm -rf /opt/luna # luna 目录
$ rm -rf /etc/init.d/guacd
$ rm -rf /bin/ssh-forward
$ rm -rf /etc/nginx/conf.d/jumpserver.conf
# 删除自启文件
$ rm -rf /usr/lib/systemd/system/jms.service
$ rm -rf /usr/lib/systemd/system/coco.service
$ rm -rf /usr/lib/systemd/system/guacamole.service
# 删除数据库
$ mysql -uroot
> drop database jumpserver;
> exit
# 清空 redis
$ redis-cli -h 127.0.0.1
> flushall
> exit
$ reboot # 重启服务器
2. 参照极速安装或者使用 docker 部署组件的使用下面方式进行卸载
.. code-block:: shell
$ rm -rf /opt/jumpserver # jumpserver 目录
$ rm -rf /opt/py3 # python3 虚拟环境
$ rm -rf /etc/nginx/conf.d/jumpserver.conf
# 删除 docker 组件
$ docker rm jms_coco
$ docker rm jms_guacamole
$ docker rmi jumpserver/jms_coco:1.4.10 # 自行替换版本
$ docker rmi jumpserver/jms_guacamole:1.4.10 # 自行替换版本
# 删除自启文件
$ rm -rf /usr/lib/systemd/system/jms.service
$ rm -rf /opt/start_jms.sh
$ rm -rf /opt/stop_jms.sh
# 删除数据库
$ mysql -uroot
> drop database jumpserver;
> exit
# 清空 redis
$ redis-cli -h 127.0.0.1
> flushall
> exit
$ reboot # 重启服务器
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