Redis servers are now a popular cache server, and Redis is usually compared to memcached. In my opinion, should be the advantages of it, although the application scenario is basically similar, but always according to the different projects to make a choice.
Today we mainly talk about the installation and deployment of Redis under the Windows platform. Go to the Chase
One, single-machine deployment using Redis
1, download Redis, I choose the latest version of the current 3.2.0 address here https://github.com/MSOpenTech/redis/releases
After the download, directly extracted to any location, I stored in the D:\Program files\redis-x64-3.2.100
2. Run the cmd command to start the Redis service.
Redis-server.exe redis.windows.conf
Note here is to be sure to take the following startup parameters, if the configuration file is modified without the start parameter and will not take effect, so be sure to remember with parameters.
If the service is started successfully, the window is a service terminal, and if the window is closed, the corresponding service will be stopped.
3. Continue the cmd command to start the client.
The Client connection service was successful.
4, set up and get data operation.
Use the SET command to deposit a single data.
Get the data with the GET command.
At this point, our simple Redis installation deployment and data-saving command operations have been outlined.
Ii. distributed deployment of Redis
Under Windows we need to configure the redis.windows.conf under the Redis folder if we want users of other IP addresses to be able to access our Redis service.
View Code
Set the binding to bind 0.0.0.0 and then shut down protected mode and restart the server.
Remote client attempts to log in to a Redis client are normally accessible. Of course, there is a large security hole in the Redis configuration that we are configuring as a follow-up study of Redis.
At this point, the Redis installation deployment and the distributed configuration under our Windows platform have been completed.
Redis Server built under Windows