In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "how to install and use Redis monitoring tools RedisInsight", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "Redis monitoring tool RedisInsight how to install and use" article.
A brief introduction to RedisInsight
RedisInsight is an intuitive and efficient Redis GUI management tool, which can monitor the memory, number of connections, hit rate and uptime of Redis, and can interact with connected Redis on the interface (RedisInsight built-in support for Redis module): official portal
The functions provided by RedisInsight:
The only GUI tool that supports Redis Cluster
Search keys, view and edit data based on the Browser interface
Support for SSL/TLS-based connections and memory analysis on the interface
2. Installation and use of RedisInsight. Physical installation
1) download RedisInsight package: portal
[root@Redis ~] # lsanaconda-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) configure the environment variables of RedisInsight
[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
Notes:
REDISINSIGHT_PORT: configure the listening port of RedisInsight (default:8001)
REDISINSIGHT_HOST: configure the IP address of the RedisInsight (default:0.0.0.0)
LOG_DIR: configure the log storage path of RedisInsight (default:REDISINSIGHT_HOST_DIR)
REDISINSIGHT_HOST_DIR: configure the data storage path of RedisInsight (default:~/.redisinsight)
3) start the RedisInsight service
[root@Redis ~] # nohup / usr/local/redisinsight/redisinsight-linux64-1.4.0 & / running [root@Redis ~] # ps aux in the background | grep redis / / check whether the process exists
2.Kubernetes installation
1) create a yaml file for RedisInsight:
[root@Redis ~] # vim redisinsight.yamlapiVersion: v1kind: Servicemetadata: name: redisinsight-servicespec: NodePort ports:-port: 80 targetPort: 8001 nodePort: 31888 selector: app: redisinsight---apiVersion: apps/v1kind: Deploymentmetadata: name: redisinsight labels: app: redisinsightspec: replicas: 1 selector: matachLabels: app: redisinsight template: metadata: labels: app: redisinsightspec: containers:-name:
2) start RedisInsight
[root@Redis] # kubectl apply-f redisinsight.yaml
Basic use of 3.RedisInsight
Install Redis (installed can be skipped directly)
[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 engine g' redis.conf # modify listening IP [root@Redis redis-6.2.6] # sed-I'/ protected-mode/s/yes/no/g' redis.conf # turn off protection mode [root@Redis redis-6.2.6] # sed-I'/ daemonize/s/no/yes/ G 'redis.conf # enable background running [root@Redis redis-6.2.6] # sed-I'/ requirepass/s/foobared/123123/g' redis.conf # configure password [root@Redis redis-6.2.6] # sed-I'/ requirepass 123123/s/ ^ # / / g 'redis.conf # delete the # before the password [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
1) access the management interface of RedisInsight through the configured IP and port:
2) you can see all kinds of information about Redis here:
3) at the same time, RedisInsight can also operate on the interface:
4) you can also analyze the memory used by Redis on the interface:
The above is about the content of this article on "how to install and use the Redis monitoring tool RedisInsight". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.