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

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

Share

Shulou(Shulou.com)06/01 Report--

This article to share with you is about how to install Redis, Xiaobian feel quite practical, so share to everyone to learn, I hope you can read this article after some harvest, not much to say, follow Xiaobian to see it.

Install under Window

Download: https://github.com/MSOpenTech/redis/releases.

Redis supports 32-bit and 64-bit. This needs to be selected according to the actual situation of your system platform. Here we download the Redis-x64-xxx.zip compressed package to drive C. After decompression, rename the folder redis.

Open the folder;

Open a cmd window and use the cd command to switch directories to C:\redis Run:

redis-server.exe redis.windows.conf

If you want to be convenient, you can add the redis path to the system environment variable, so that you don't have to input the path again, the redis.windows.conf can be omitted, if omitted, the default will be enabled. After entering, the following interface will be displayed:

At this time open another cmd window, the original do not close, or you will not be able to access the server.

Switch to the redis directory to run:

redis-cli.exe -h 127.0.0.1 -p 6379

Set key-value pairs:

set myKey abc

Get key pairs:

get myKey

The above is how to install Redis, Xiaobian believes that some knowledge points may be what we will see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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