1 Introduction Fast speed. Persistence. Atomicity. Rich data structure. Multi-language support. This article will briefly introduce how to install 2 Docker installation and use 2.1 Docker Installation Pull the $ docker pull redis:5.0.8 It is recommended to configure it as Alibaba Cloud's mirror, which will be much faster. After the pull is successful, you can check it with the following command: $ docker images |grep redis Start $ docker run -itd --name redis -p 6379:6379 redis:5.0.8 Check whether the startup is successful by running the following command: $ docker ps | grep redis Enter the container: $ docker exec -it redis /bin/bash Connect to the database through the $ redis-cli -h localhost -p 6379 Of course, you don't have to specify After the connection is successful, you can operate: You can do a simple performance test on the installed $ redis-benchmark -n 100000 -q The results are as follows: It can be seen that although it is installed through 2.2 Common Redis Operations # Start the Redis service redis-server [--port 6379] # Command line connection redis-cli [-h 127.0.0.1 -p 6379] # Set key value # Query value get key # Query type type key # Delete del key1 key2 key3 # Get the keys list keys pattern # Query the key life cycle ttl key pttl key # Increasing and decreasing values (for numbers) incr key incrby key step decr key decrby key step There are too many to list here. You can go to (http://www.redis.cn/commands.html) to check, which contains all the commands and detailed Chinese descriptions. 3 Visual Client It is sometimes not convenient to view and operate through the command line. There are many visual clients for 3.1 RedisClient A visualization tool developed based on 3.2 RedisStudio A free visualization tool for 3.3 RedisDesktopManager A cross-platform tool developed based on 3.4 AnotherRedisDesktopManager An excellent and beautiful open source free visualization tool that supports The You can download and install it from It is convenient to query, add, modify, delete and other operations on It also provides command line tools, which is really thoughtful: 4 Conclusion This article introduces how to use In addition, four This is the end of this article about installing Redis with Docker and visualizing the client operation. For more information about installing Redis with Docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: mysql 8.0.18 mgr installation and its switching function
>>: Vue implements the magnifying glass effect of tab switching
This article example shares the specific code of ...
JavaScript to achieve the source code download ad...
Adding the attribute selected = "selected&quo...
This work uses the knowledge of front-end develop...
MySql is a data source we use frequently. It is v...
question The tomcat container was successfully ad...
1. I downloaded QT5.13 version before, but after ...
What is Nginx access restriction configuration Ng...
Preface The previous article introduced the insta...
Preface Anyone who has used json should know that...
1. First log in to the Alibaba Cloud website to r...
Table of contents use Install How to use it in ro...
Tips: Array change method will cause v-for to upd...
This article example shares the specific code of ...
Use apk add ansible to add the ansible service to...