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

The method of installing, starting and configuring Redis under windows

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Editor to share with you how to install, start and configure Redis under windows. I believe most people don't know much about it, so share this article for your reference. I hope you can learn a lot after reading this article. Let's learn about it together.

Redis uses the tutorial column to introduce how to install Redis under windows

1. Download address: https://github.com/MicrosoftArchive/redis/releases

2. Create two folders dbcache and logs in the folder after unzipping.

3. Double-click redis-server.exe to start redis. The following image indicates that the startup is successful.

4. The above startup is generally used to detect whether redis can be started successfully. If it is successful, then register redis as a system service and put it in the "Services" item.

Open the command line, go to the redis directory, execute redis-server.exe-- service-install redis.windows.conf-- loglevel verbose, and view Services. In addition, configure the environment variable to add the redis path to the path.

If started from the command line, the service is also shut down after the command window is closed.

5 the configuration of the Linux redis.windows.conf file (the name in Linux is called redis.conf), here only five basic parameters are configured:

Daemonize no configures whether redis is running in the background

Pidfile / var/run/redis_6379.pid setting process save path

Logfile ". / logs/logfile.log" log save directory

Number of databases supported by databases 16

Dir. / dbcache the directory where the data files are saved

6. In the service item, start redis and use netstat-ano on the command line to see if port 6379 is started

7, connect to redis through the command line, and enter redis-cli

8, set up a data

9. Check the logs folder and dbcache folder. If there are logfile.log and dump.rdb, the configuration is successful and running normally.

These are all the contents of this article entitled "how to install, start and configure Redis under windows". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to 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