Unverified Commit 871c0213 authored by wojiushixiaobai's avatar wojiushixiaobai Committed by GitHub

Merge pull request #2048 from wojiushixiaobai/docs

[Add]添加文档
parents 504452b1 0420898b
......@@ -8,6 +8,7 @@ FAQ
TELNET 使用说明 <faq_telnet.rst>
Docker 使用说明 <faq_docker.rst>
安装过程 常见问题 <faq_install.rst>
升级过程 常见问题 <faq_upgrade.rst>
Firewalld 使用说明 <faq_firewalld.rst>
RDP 协议资产连接说明 <faq_rdp.rst>
SSH 协议资产连接说明 <faq_ssh.rst>
......
升级常见问题
---------------------
1. git pull 时提示 error: Your local changes to the following file would be overwritten by merge
.. code-block:: shell
# 这是因为你修改了本地文件导致代码冲突, 请确认修改的内容并手动进行合并,请谨慎处理
# 如果希望保留你的改动
$ git stash
$ git pull
$ git stash pop
# 可以使用git diff -w +文件名 来确认代码自动合并的情况
# 或者放弃本地的修改
$ git reset --hard
$ git pull
2. sh make_migrations.sh 时提示 1064, "You have an error in your SQL syntax; check the manual than corresponds to your MySql server version for the right syntax to use near '(6) NOT NULL'"
.. code-block:: vim
# 这是因为你的数据库版本不对, 从 1.4.x 版本开始 mysql 版本需要大于等于 5.6, mariadb 版本需要大于等于 5.5.6
# 请更换数据库重新操作
......@@ -71,14 +71,6 @@
$ pip install -r requirements/requirements.txt
$ cd utils && sh make_migrations.sh
.. code-block:: shell
# 如果执行 sh make_migrations.sh 时有红色文字提示 Run 'manage.py make_migrations' 和 'manage.py migrate' ,则需要执行下面4条命令,没有则忽略这一步
$ cd /opt/jumpserver/apps
$ python manage.py makemigrations
$ python manage.py migrate
$ cd ../utils && sh make_migrations.sh
.. code-block:: shell
   # 1.0.x 升级到最新版本需要执行迁移脚本 (新版本授权管理更新,升级前版本不是 1.0.x 请跳过)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment