Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Redis in windows environment

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to install Redis in windows environment. I hope you will get something after reading this article. Let's discuss it together.

Redis is an open source (BSD licensed) in-memory data structure store that is used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, collections, collections with scoped queries, bitmaps, hyperlogs, geospatial indexes, and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions, and different levels of disk persistence, and provides high availability through automatic partitioning of Redis Sentinel and Redis Cluster. [related recommendation: Redis video tutorial]

Download address: https://github.com/tporadowski/redis/releases%E3%80%82

Redis supports 32-bit and 64-bit. This needs to be chosen according to the actual situation of your system platform. Here we download the Redis-x64-xxx.zip package to disk C, decompress it, and rename the folder to redis.

Installation steps

1. Open a cmd window and use the cd command to change the directory to C:\ redis to run:

Redis-server.exe redis.windows.conf

2. Open another cmd window at this time. Do not close the original window, or you will not be able to access the server.

3. Change to the redis directory to run:

Redis-cli.exe-h 127.0.0.1-p 6379set myKey abcget myKey configuration security authentication

Find the redis configuration file-redis.conf file, and then modify the requirepass in it, which was originally annotated, remove the comment, and set the corresponding field to the password you want, and save exit. Restart the redis service.

After reading this article, I believe you have a certain understanding of "how to install Redis in windows". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report