Home >Database >Redis >How to download and install redis

How to download and install redis

藏色散人
藏色散人Original
2019-08-29 13:25:283798browse

How to download and install redis

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:

How to download and install redis

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:

How to download and install redis

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:

How to download and install redis

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:

How to download and install redis

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:

How to download and install redis

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to open redisNext article:How to open redis