jumpserver管理员账号被锁定

问题:管理员账号频繁错误登陆被锁定,需要解锁账号。

前提:需要后台登陆jumpserver所在机器。
执行以下命令:

[root@localhost jumpserver-v2.20.2]#  docker exec -it jms_core /bin/bash
root@84b571d425f2:/opt/jumpserver# cd /opt/jumpserver/apps/
root@84b571d425f2:/opt/jumpserver/apps# python manage.py shell
Python 3.8.13 (default, Mar 29 2022, 14:49:15) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.2.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from django.core.cache import cache

In [2]: cache.delete_pattern('_LOGIN_BLOCK_*')
Out[2]: 1

In [3]: cache.delete_pattern('_LOGIN_LIMIT_*')
Out[3]: 6

执行完后即可刷新web界面进行登陆。

posted @ 2022-05-09 11:20  忘川的彼岸  阅读(1163)  评论(0编辑  收藏  举报