Home  >  Article  >  Backend Development  >  Detailed tutorial for installing Redis under Windows 64-bit, 64-bit redis_PHP tutorial

Detailed tutorial for installing Redis under Windows 64-bit, 64-bit redis_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:44:471123browse

Detailed tutorial on installing Redis under Windows 64-bit, 64-bit redis

Redis is an open source log written in ANSI C language, supports network, can be based on memory and can be persisted type, Key-Value database, and provides APIs in multiple languages.

Tools/Materials

  • Windows 64-bit operating system
  • Redis installation package (current tutorial version 2.8.12)

Method/Steps

Create a new folder [redis] on the D drive, right-click to extract the Redis ZIP package, and extract all files into the redis folder. (Other drive letters can also be used^_^)

File introduction:

redis-benchmark.exe        #Benchmark test

redis-check-aof.exe           # aof

redischeck-dump.exe          # dump

redis-cli.exe                                                                  

redis-server.exe                                                                      

redis.windows.conf​​​​​ # Configuration file

Run windows (shortcut key: windows key R key), enter the [cmd] command to enter the DOC operating system window.

Use the command [redis-server.exe redis.windows.conf] to start the redis service [If you do not encounter the following errors, skip directly]. If you have the following error like me, don’t worry, there is always a solution!

Solution:
According to the prompt, there is a problem with the maxheap logo. Open the configuration file redis.windows.conf, search for maxheap, and then specify the content directly.
......
#
# maxheap
maxheap 1024000000
....
Then start again, OK, success.

Start the doc window of the redis service without closing it, because the service needs to be executed all the time. To close the service, just close the window.

Open a new doc window and use the built-in client tool to test the command [redis-cli.exe]. The detailed operations are as follows. . The example shows a basic read and write operation, set set key->age, value->21, and get age to get the value of key. ^_^


http://www.bkjia.com/PHPjc/1048726.html

truehttp: //www.bkjia.com/PHPjc/1048726.htmlTechArticleDetailed tutorial on installing Redis under Windows 64-bit, 64-bit redis Redis is an open source software written in ANSIC language and supports network , a log-type, Key-Value database that can be both memory-based and persistent,...
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