In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about whether redis can support windows. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Redis is one of the most popular NOSQL systems, and it is a key-value storage system. Redis data is cached in computer memory, and will periodically write updated data to disk or modify operations to additional record files.
Windows is not officially supported by the Redis project. However, because it is open source, the Microsoft Open Technology team developed and maintained the Windows interface program for Win64 and provided a windows version of the redis branch.
How to install Redis:
1. Download Redis
Need to download from github, address: https://github.com/MicrosoftArchive/redis/releases
At present, the latest version is 3.2.100, and of course there are other versions, each with two files, one is the MSI installation file, the other is the Zip zip file. We click on the link to the desired file and download it directly. I now have a Zip compressed file.
2. Install Redis
1), save the downloaded file to any directory, of course, the compressed file can also be unzipped to any directory, but this directory must be remembered. The contents of the folder are as follows:
2) enable Redis service
Redis is divided into server-side and client-side, so we must install the server-side first, otherwise Redis will not be able to provide services for us.
First open the CMD window, preferably as an administrator, of course, change the address of the command to the directory where Redis is extracted, and then run the command
Redis-server redis.windows.conf
When you see the following page, the server side of Redis starts successfully. To be clear, this CMD window should not be closed, so the launched Redis is one-time, and the shutdown will not provide services for us.
3), the client that starts Redis
The server side of Redis starts, and then we need to start the client side of Redis. The name of this program is: Redis-Cli.exe.
Open another Cmd window, change the directory to the directory where the Redis package is extracted, and then run the following command directly:
Redis-cli-h 192.168.127.1-p 6379
Set key-value pairs:
Set myKey abc
Take out the key-value pair:
Get myKey
It should be pointed out that if every time we start the server and client side of Redis, we have to switch the address of the Cmd command character, that is, to change the address of the current command character to the directory of the decompressed address of the Redis package, in order to execute the corresponding files, it is a bit troublesome that we can put the address of the Redis package into the "environment variable" and then we do not have to switch addresses every time we use it.
Thank you for reading! So much for sharing whether redis can support windows or not. I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.