lewisx

导航

 
#忘记 jumpserver 超级用户密码
[root@ope-jumpserver ~]# docker exec -it jms_all /bin/bash


#如果没有按装django 需执行下面命令进行安装(如安装过 此步骤可忽略)
#python3 -m pip install --upgrade pip setuptools
#python3 -m pip install django

#进入py3虚拟环境
[root@29f71e153a73 opt]# source /opt/py3/bin/activate

(py3) [root@29f71e153a73 ~]# python /opt/jumpserver/apps/manage.py changepassword admin
Password: 
Password (again): 
Password changed successfully for user 'Administrator(admin)'
(py3) [root@29f71e153a73 ~]# 
exit 退出jms_all 容器,去测试新密码即可
posted on 2022-04-25 16:59  Lewis_Xu  阅读(1070)  评论(0编辑  收藏  举报