jumpserver管理员账号被锁定

登录等jumpserver部署机器,进入到jms_core容器中

[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

你可能感兴趣的:(工具及软件安装,django,python,后端)