Installing and Using RedisInsight for Redis Management
This guide explains what RedisInsight is, outlines its key features, and provides step‑by‑step instructions for installing it on a physical server or via Kubernetes, configuring environment variables, launching the service, and using the GUI to monitor and manage Redis instances.
RedisInsight is an intuitive GUI management tool for Redis that monitors memory, connections, hit rate, uptime, and provides an integrated CLI with support for Redis modules and clusters.
Key features include exclusive GUI support for Redis Cluster, browser‑based key search and editing, SSL/TLS connections, and built‑in memory analysis.
Physical installation :
1. Download the RedisInsight package, extract it, move it to /usr/local/redisinsight/redisinsight-1.11.0 , and make it executable:
[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.02. Set environment variables for host, directory, port, etc.:
[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_profile3. Start the service in the background:
[root@Redis ~]# nohup /usr/local/redisinsight/redisinsight-linux64-1.4.0 &
[root@Redis ~]# ps aux | grep redisKubernetes installation :
Create a redisinsight.yaml file defining a Service and Deployment, then apply it:
[root@Redis ~]# vim redisinsight.yaml
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:
matchLabels:
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: {}Apply the manifest:
[root@Redis ~]# kubectl apply -f redisinsight.yamlBasic usage :
If Redis is not yet installed, download, compile, and configure it (binding IP, disabling protected mode, enabling daemonize, setting a password) and start the server:
[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
[root@Redis redis-6.2.6]# sed -i '/protected-mode/s/yes/no/g' redis.conf
[root@Redis redis-6.2.6]# sed -i '/daemonize/s/no/yes/g' redis.conf
[root@Redis redis-6.2.6]# sed -i '/requirepass/s/foobared/123123/g' redis.conf
[root@Redis redis-6.2.6]# sed -i '/requirepass 123123/s/^#//g' redis.conf
[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.confAccess RedisInsight via the configured IP and port in a web browser to view Redis metrics, perform key operations, and conduct memory analysis through its graphical interface.
【END】
Java Captain
Focused on Java technologies: SSM, the Spring ecosystem, microservices, MySQL, MyCat, clustering, distributed systems, middleware, Linux, networking, multithreading; occasionally covers DevOps tools like Jenkins, Nexus, Docker, ELK; shares practical tech insights and is dedicated to full‑stack Java development.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.