1 Download window version of redis:https://github.com/msopentech/redis/releases
2 Unzip the package. I put it on the E-plate: E:/redis
3 program, input cmd into the console
4 Follow the steps below to enter the Redis directory and turn on the Redis service
- E:
- CD Redis
- Redis-server.exe redis.windows.conf
5 Fourth Step window do not close, otherwise you will not be able to access the service, new open a cmd console,
Switch to the Redis directory to run the redis-cli.exe-h 127.0.0.1-p 6379 .
Set the key-value pair set MyKey codeforphp
Remove key value pair get MyKey
6379-Why does Redis choose it as the default port number?
A few days ago , Antirez, a Redis author, said on Twitter that the next blog post would explain to everyone why he chose 6379 as the default port number.
Now this blog post, after explaining the LRU mechanism of Redis, as scheduled to explain the use of 6379 as the default port reasons.
6379 Merz The corresponding number on the phone keypad, and Merz is taken from the Italian showgirl Alessia Merz name. Merz has long been synonymous with Antirez and his friends as stupidity.
The first experience of redis (window)