How to download and install redis?
In the first step, we first download Redis from the Redis official website. Here is a download address YPSuperKey Checkedhttps://pan.baidu.com/s/1wxgWVtswnRHfTc1ldVlHrw, as shown in the figure below:
After downloading the second step, create a new redis folder, and then extract the files in the compressed package into the redis folder, as shown in the following figure:
The third step is to open the command line window on our computer. After entering, switch to the path where redis is stored, use "e:" to enter the e drive, and "cd E:\redis" to enter the redis directory. Enter the command "redis-server.exe redis.windows.conf" and press the Enter key, as shown in the figure below:
After pressing the Enter key in the fourth step, a message appears After the above graphic, re-open a command line window, go to the path where redis is stored, enter "redis-cli.exe -h 127.0.0.1 -p 6379", and press the Enter key, as shown in the following figure:
In the fifth step, enter "set myKey xx" to set the key-value pair, and "get myKey" to remove the key-value pair. The installation is complete, as shown in the following figure:
For more Redis related knowledge, please visit the Redis usage tutorial column!
The above is the detailed content of How to download and install redis. For more information, please follow other related articles on the PHP Chinese website!