问题:管理员账号频繁错误登陆被锁定,需要解锁账号,如下图所示
解决方法:登陆JumpServer所在服务器。
执行以下命令:
[root@localhost ~]# cd /opt/jumpserver-installer-v4.10.11/
[root@localhost jumpserver-installer-v4.10.11]# docker exec -it jms_core /bin/bash
root@jms_core:/opt/jumpserver# cd /opt/jumpserver/apps/
root@jms_core:/opt/jumpserver/apps# python manage.py shell
/opt/py3/lib/python3.11/site-packages/httpsig/__init__.py:1: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import get_distribution, DistributionNotFound
Python 3.11.13 (main, Jul 22 2025, 01:43:09) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.core.cache import cache
>>> cache.delete_pattern('_LOGIN_BLOCK_*')
1
>>> cache.delete_pattern('_LOGIN_LIMIT_*')
2
执行完命令后即可刷新Web界面重新进行登陆,如下图所示
若文章图片、下载链接等信息出错,请在评论区留言反馈,博主将第一时间更新!如本文“对您有用”,欢迎随意打赏,谢谢!


评论