JumpServer管理员账号被锁定

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

JumpServer管理员账号被锁定

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

JumpServer管理员账号被锁定

JumpServer管理员账号被锁定

原创文章,作者:admin,如若转载,请注明出处:https://hostingchat.cn/5403.html

(0)
admin的头像admin
上一篇 2025年10月23日 上午12:00
下一篇 2025年10月24日 上午12:00

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

QQ
分享本页
返回顶部