centos7:Jumpserver安装与部署(三)---更新升级

更新升级--->记得 source /opt/py3/bin/activate
# 升级Jumpserver
cd /opt/jumpserver/utils/
git pull
pip install -r /opt/jumpserver/requirements/requirements.txt
bash /opt/jumpserver/utils/make_migrations.sh
sh /opt/jumpserver/utils/2018_04_11_migrate_permissions.sh

# 升级coco
cd /opt/coco/
git pull
pip install -r /opt/coco/requirements/requirements.txt -i https://pypi.org/simple

# 升级luna
cd /opt/
wget https://github.com/jumpserver/luna/releases/download/1.3.0/dist.tar.gz
tar xf dist.tar.gz
mv dist luna

# 升级guacamole
docker pull registry.jumpserver.org/public/guacamole:latest
docker stop jms_guacamole
docker rename jms_guacamole jms_guacamole_bak
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://192.168.10.12 \
> registry.jumpserver.org/public/guacamole:latest
# 确定升级完成后,可以删除容器备份
docker rm jms_guacamole_bak

 

参考文档

http://docs.jumpserver.org/zh/docs/upgrade.html

你可能感兴趣的:(Jumpserver)