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 Services in Windows

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

How do I install the Redis service in Windows? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

1. To install Redis, you must first obtain the installation package

2. On the download page, find the last released version (3.2.100 here). Find Redis-x64-3.2.100.msi and Redis-x64-3.2.100.zip and click download. As explained here, the first is an installation package in msi Microsoft format, and the second is a compressed package.

3. Double-click the newly downloaded msi format installation package (Redis-x64-3.2.100.msi) to start the installation.

4. Select "agree to Agreement" and click next to continue.

5, select "add Redis directory to the environment variable PATH", which makes it easy for the system to automatically identify where the Redis execution file is.

6. The port number can be kept at the default of 6379, and the firewall exception can be selected to ensure that the Redis service can be accessed normally by the outside.

7. Set the maximum value to 100m. 100m is enough for experiment and study.

8. After clicking install, the formal installation process begins. It will be finished in a moment.

9. After installation, you need to do some setting work first so that the service can run normally after startup. Using a text editor, here use Notepad++, to open the Redis service configuration file. Note: don't get the wrong number. It's usually redis.windows-service.conf, not redis.windows.conf. The latter is the configuration file used by the startup program in a non-system service mode.

10. Find the place containing the word requirepass, add a line, and enter requirepass 12345. This is the password you need to access Redis. In general, you don't have to set a password for testing. However, it is recommended that you set a password even as a local access. This is demonstrated with a simple 12345.

Click "start" > right-click "computer" > select "manage". In the left column, locate and click computer Management (Local) > Services and applications > Services. Then find the service with the name of Redis on the right to check the startup status. If it is not started, start it manually. Normally, the service should be up and running normally.

12. Finally, let's test whether Redis provides services normally. Enter the directory of Redis, cd C:\ Program Files\ Redis. Enter redis-cli and enter. (redis-cli is a client program) if the figure prompts you to enter normally and displays the correct port number, the service has been started.

13 、

Password authentication is required before using the service. Enter "auth 12345" and enter (12345 is the previously set password). A prompt OK is returned to indicate that the verification is passed.

14 、

Actually test reading and writing. Enter set mykey1 "I love you all!" And enter to save a key value. Type get mykey1 again to get the key value you just saved.

This is the answer to the question about how to install Redis service in Windows. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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