JumpServer管理员账号被锁定

小柒博客 评论16字数 204阅读0分40秒阅读模式

问题:管理员账号频繁错误登陆被锁定,需要解锁账号,如下图所示

解决方法:登陆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界面重新进行登陆,如下图所示

若文章图片、下载链接等信息出错,请在评论区留言反馈,博主将第一时间更新!如本文“对您有用”,欢迎随意打赏,谢谢!

继续阅读
Wechat
微信扫一扫,加我!
weinxin
微信号已复制
微信公众号
微信扫一扫,关注我!
weinxin
公众号已复制
小柒博客
  • 本文由 小柒博客 发表于 2025年10月23日 16:49:14
  • 声明:本站所有文章,如无特殊说明或标注,本站文章均为原创。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。转载请务必保留本文链接:https://www.yangxingzhen.com/11227.html

发表评论