Under the Windows installation
Download address: https://github.com/MSOpenTech/redis/releases,
Redis support 32-bit and 64 - bit, this need according to the actual situation of the system platform you choose, here we download the Redis - x64 - XXX. Zip package to disk C, after decompression, folder will be renamed Redis,
C616944c44723db1bd05028fc05550c. PNG
Open the folder.
Open a CMD window using the CD command switch directory to C: \ redis running:
Redis - server. Exe redis. Windows. The conf
If you want to be convenient, you can add the path of the redis to the system environment variable, so will save another path, that redis. Behind the Windows. The conf can be omitted, if omitted, will be enabled by default, input, will show the following interface:
57 b0c52f04505e913cfcbf6013c08c6. PNG
Another rev a CMD window at this time, the original don't shut down, or you can't access the server,
Switch to the run redis directory:
Redis - cli. 127.0.0.1 exe - h - p 6379
Set the key value for:
The set myKey ABC
Take out the key/value pair:
The get myKey
Baf7caeb7d2275f1b0f52a9c53e14b1. PNG
The original transfer: https://www.php.cn/redis/428802.html
CodePudding user response: