Home > Article > Backend Development > Detailed tutorial for installing Redis under Windows 64-bit, 64-bit redis_PHP tutorial
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.
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.exeredis.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