Databases 6 min read

How to Install and Use RedisInsight for Redis Monitoring and Management

This guide walks through RedisInsight’s key features, step‑by‑step Linux installation, environment‑variable configuration, service startup, Kubernetes deployment via a yaml manifest, and basic UI operations for monitoring Redis memory, connections, and data, illustrated with concrete commands and screenshots.

Java Web Project
Java Web Project
Java Web Project
How to Install and Use RedisInsight for Redis Monitoring and Management

RedisInsight Overview

RedisInsight is a GUI client for Redis that provides real‑time monitoring of memory usage, connection count, hit‑rate and uptime, an embedded CLI, and full support for Redis modules. It is the only GUI that can connect to a Redis Cluster and offers browser‑based key search, edit, and SSL/TLS connections.

Linux installation and configuration

1. Download and place the binary

[root@host ~]# ls
redisinsight-linux64-1.11.0
[root@host ~]# mkdir /usr/local/redisinsight
[root@host ~]# mv redisinsight-linux64-1.11.0 /usr/local/redisinsight/redisinsight-1.11.0
[root@host ~]# chmod +x /usr/local/redisinsight/redisinsight-1.11.0

2. Define environment variables (host, data directory, log directory, port). The defaults are REDISINSIGHT_HOST=0.0.0.0, REDISINSIGHT_PORT=8001, REDISINSIGHT_HOST_DIR=~/.redisinsight, and LOG_DIR=$REDISINSIGHT_HOST_DIR.

# echo "export REDISINSIGHT_HOST=192.168.1.1" >> ~/.bash_profile
# echo "export REDISINSIGHT_HOST_DIR=/usr/local/redisinsight/.redisinsight" >> ~/.bash_profile
# source ~/.bash_profile

3. Start the service in the background

[root@host ~]# nohup /usr/local/redisinsight/redisinsight-1.11.0 &
[root@host ~]# ps aux | grep redisinsight   # verify the process is running

Kubernetes deployment

Create a manifest redisinsight.yaml that defines a NodePort Service (port 80 → targetPort 8001, nodePort 31888) and a Deployment using the official Docker image redislabs/redisinsight:1.7.0. The pod mounts an emptyDir volume at /db for the internal database.

apiVersion: v1
kind: Service
metadata:
  name: redisinsight-service
spec:
  type: NodePort
  ports:
  - port: 80
    targetPort: 8001
    nodePort: 31888
  selector:
    app: redisinsight
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redisinsight
spec:
  replicas: 1
  selector:
    matchLabels:
      app: redisinsight
  template:
    metadata:
      labels:
        app: redisinsight
    spec:
      containers:
      - name: redisinsight
        image: redislabs/redisinsight:1.7.0
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 8001
        volumeMounts:
        - name: db
          mountPath: /db
      volumes:
      - name: db
        emptyDir: {}

Apply the manifest:

# kubectl apply -f redisinsight.yaml

Preparing a Redis server (optional)

If a Redis instance is not already available, compile Redis 6.2.6, adjust redis.conf to bind to the desired IP, disable protected mode, enable daemonization, and set a password.

# wget https://download.redis.io/releases/redis-6.2.6.tar.gz
# tar zxf redis-6.2.6.tar.gz
# cd redis-6.2.6
# make PREFIX=/usr/local/redis install
# sed -i '/^bind 127.0.0.1/s/127.0.0.1/192.168.1.1/' redis.conf
# sed -i '/protected-mode/s/yes/no/' redis.conf
# sed -i '/daemonize/s/no/yes/' redis.conf
# sed -i '/requirepass/s/foobared/123123/' redis.conf
# cp redis.conf /usr/local/redis/
# /usr/local/redis/bin/redis-server /usr/local/redis/redis.conf

Basic RedisInsight usage

After the service is running, open a browser at http://<IP>:8001. The UI displays:

Real‑time memory usage, connection statistics and hit‑rate metrics.

A key explorer that allows searching, viewing, editing and deleting keys.

An embedded CLI console for ad‑hoc commands.

Memory analysis visualizations that show allocation patterns.

All panels are interactive, enabling troubleshooting of cluster health without leaving the browser.

Source: blog.csdn.net/weixin_46902396/article/details/120807629
CLIKubernetesRedisInstallationRedisInsightDatabase Monitoring
Java Web Project
Written by

Java Web Project

Focused on Java backend technologies, trending internet tech, and the latest industry developments. The platform serves over 200,000 Java developers, inviting you to learn and exchange ideas together. Check the menu for Java learning resources.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.