Databases 6 min read

RedisInsight Guide: Installation, Configuration, and Basic Usage

This article provides a comprehensive tutorial on RedisInsight, covering its features, step‑by‑step physical and Kubernetes installation, environment variable setup, service startup, and basic usage together with Redis server configuration, illustrated with code snippets and screenshots.

Architect's Tech Stack
Architect's Tech Stack
Architect's Tech Stack
RedisInsight Guide: Installation, Configuration, and Basic Usage

1. RedisInsight Overview

RedisInsight is a visually appealing, intuitive GUI management tool for Redis that monitors memory, connections, hit rate, and uptime, supports CLI interaction, and uniquely handles Redis Cluster and modules.

2. Installation and Usage

2.1 Physical Installation

Download the RedisInsight package and install it on a Linux host.

[root@Redis ~]# ls
anaconda-ks.cfg  redisinsight-linux64-1.11.0
[root@Redis ~]# mkdir /usr/local/redisinsight
[root@Redis ~]# mv redisinsight-linux64-1.11.0 /usr/local/redisinsight/redisinsight-1.11.0
[root@Redis ~]# chmod +x /usr/local/redisinsight/redisinsight-1.11.0

2.2 Environment Variables

Configure host, data directory, port and log settings via environment variables.

[root@Redis ~]# echo "export REDISINSIGHT_HOST=192.168.1.1" >> ~/.bash_profile
[root@Redis ~]# echo "export REDISINSIGHT_HOST_DIR=/usr/local/redisinsight/.redisinsight" >> ~/.bash_profile
[root@Redis ~]# source ~/.bash_profile

2.3 Start RedisInsight Service

[root@Redis ~]# nohup /usr/local/redisinsight/redisinsight-linux64-1.4.0 &  // run in background
[root@Redis ~]# ps aux | grep redis            // verify process

2.4 Kubernetes Installation

Create a redisinsight.yaml manifest that defines a NodePort service and a deployment.

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
  labels:
    app: redisinsight
spec:
  replicas: 1
  selector:
    matachLabels:
      app: redisinsight
  template:
    metadata:
      labels:
        app: redisinsight
    spec:
      containers:
      - name: redisinsight
        image: redislabs/redisinsight:1.7.0
        imagePullPolicy: IfNotPresent
        volumeMounts:
        - name: db
          mountPath: /db
        ports:
        - containerPort: 8001
          protocol: TCP
      volumes:
      - name: db
        emptyDir: {}

2.5 Deploy to Kubernetes

[root@Redis ~]# kubectl apply -f redisinsight.yaml

2.6 Basic Usage with Redis Server

Install Redis, adjust configuration, and start the server before accessing RedisInsight.

[root@Redis ~]# wget https://download.redis.io/releases/redis-6.2.6.tar.gz
[root@Redis ~]# tar zxf redis-6.2.6.tar.gz
[root@Redis ~]# cd redis-6.2.6
[root@Redis redis-6.2.6]# make PREFIX=/usr/local/redis install
[root@Redis redis-6.2.6]# sed -i '/^bind 127.0.0.1/s/127.0.0.1/192.168.1.1/g' redis.conf  # change bind IP
[root@Redis redis-6.2.6]# sed -i '/protected-mode/s/yes/no/g' redis.conf      # disable protected mode
[root@Redis redis-6.2.6]# sed -i '/daemonize/s/no/yes/g' redis.conf       # enable daemon
[root@Redis redis-6.2.6]# sed -i '/requirepass/s/foobared/123123/g' redis.conf     # set password
[root@Redis redis-6.2.6]# sed -i '/requirepass 123123/s/^#//g' redis.conf      # uncomment password line
[root@Redis redis-6.2.6]# cp redis.conf /usr/local/redis/
[root@Redis redis-6.2.6]# /usr/local/redis/bin/redis-server /usr/local/redis/redis.conf   # start Redis

After configuring the Redis server’s IP and port, open the RedisInsight web UI to explore key data, monitor memory, and perform operations directly from the interface.

KubernetesRedisInstallationRedisInsightDatabase GUI
Architect's Tech Stack
Written by

Architect's Tech Stack

Java backend, microservices, distributed systems, containerized programming, and more.

0 followers
Reader feedback

How this landed with the community

login 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.