redis視覺化工具-RedisInsight-2.0
簡介
官方視覺化工具2.0
Docker安裝
Installing RedisInsight on Docker | Redis Documentation Center
Installing RedisInsight on Docker
This tutorial shows how to install RedisInsight onDockerso you can use RedisInsight in development. We have a separate guide for installingRedisInsight on AWS.
Install Docker
The first step is todocker version
command in a terminal window to make sure that docker is installed correctly.
docker version
to find out your docker version.
Run RedisInsight Docker image
Next, run the RedisInsight container. The easiest way is to run the following command:
and then point your browser tohttp://localhost:8001.
RedisInsight also provides a health check endpoint athttp://localhost:8001/healthcheck/to monitor the health of the running container.
說明
Note:
Make sure the directory you pass as a volume to the container has necessary permissions for the container to access it. For example, if the previous command returns a permissions error, run the following command:
In addition, you can add some additional flags to the docker run command:
-
You can add theflag to see the logs and view the progress.
-it
-
On Linux, you can add. This makes it easy to work with redis running on your local machine.
--network host
-
To analyze RDB files stored in S3, you can add the access key and secret access key as environment variables using theflag.
-e
For example:
-e AWS_ACCESS_KEY=<aws access key> -e AWS_SECRET_KEY=<aws secret access key>
If everything worked, you should see the following output in the terminal: