Redis:Redisinsight:连接时出错:"Something went wrong adding the database. Please try again"

Redis: Redisinsight : Error while connecting : "Something went wrong adding the database. Please try again"

我有一个 Redis 服务器,我正在尝试连接到 Mule 4 应用程序。

我的 objective 是:

  1. 使用 Mule 4 应用连接 Redis:成功
  2. 使用 Redisinsight 连接 Redis 以可视化数据 -> 问题

在使用 Redisinsight 连接时,我执行以下操作:

我收到错误消息:“添加数据库时出错。请重试”

有趣的是,通过 mule 连接时,我只需要提供主机、端口和密码就可以了。

请帮忙。提前致谢

来自 redisinsight 日志:

ERROR 2021-02-09 14:14:20,123 django.request Internal Server Error: /api/instance/
Traceback (most recent call last):
  File "django\core\handlers\exception.py", line 34, in inner
  File "django\core\handlers\base.py", line 115, in _get_response
  File "django\core\handlers\base.py", line 113, in _get_response
  File "django\views\decorators\csrf.py", line 54, in wrapped_view
  File "django\views\generic\base.py", line 71, in view
  File "rest_framework\views.py", line 495, in dispatch
  File "rest_framework\views.py", line 455, in handle_exception
  File "rest_framework\views.py", line 492, in dispatch
  File "redisinsight\core\views\instance.py", line 208, in post
  File "redisinsight\core\views\instance.py", line 147, in _save_redis_instance
  File "redisinsight\core\services\database\_routines.py", line 80, in _wrapped_add_db_func
  File "redisinsight\core\services\database\_routines.py", line 765, in add_redis_database
  File "redisinsight\core\services\database\_routines.py", line 809, in add_standalone_db
  File "redisinsight\core\services\database\_routines.py", line 576, in _add_standalone_db
  File "redisinsight\core\services\database\_routines.py", line 190, in _assert_db_type
  File "redisinsight\core\services\database\_routines.py", line 175, in _probe_db_type
  File "redis\client.py", line 1281, in info
  File "redis\client.py", line 878, in execute_command
  File "redis\client.py", line 892, in parse_response
  File "redis\connection.py", line 752, in read_response
redis.exceptions.ResponseError: unknown command `INFO`, with args beginning with: 

您的 Redis 服务器似乎禁用了 INFO 命令。 RedisInsight 需要启用 INFOPING 等基本命令。

启用INFO命令 编辑 Redis 配置文件:

sudo nano /etc/redis/redis.conf

搜索 INFO 命令

类似于:

rename-command INFO ""

注释该行并重启redis:

systemctl restart redis