Start after downloading redis, redis starts flashback under windows

After decompressing the Redis installation package, double-click "redis-server.exe", and it will crash! Double-click "redis-cli.exe", prompt "can't connect" in English.

Step 1: Modify the "redis.windows.conf" file content

Open the redis.windows.conf file and limit the memory.

In the file, look for the content "maxheap", add the content: "maxheap 1024000000".

If there are other needs, change the corresponding configuration, such as password, port number, bind IP, etc.

Step 2: Enter the cmd command to start Redis

Open the cmd window in the current folder and enter the cmd command: redis-server.exe redis.windows.conf

You can see that the startup is successful!

Step 3: Create the Redis quickstarter start.bat

Under the decompressed redis folder, create a new start.bat (the window startup is generally xx.bat). In this file enter:

redis-server.exe redis.windows.conf 

Double-click this file to start it

Other Notes:

1. The configuration in the configuration file cannot have spaces, for example: I set bind 127.0.0.1, there is a space in front of bind, and an error will be reported when starting! It says that the bind command cannot be found

2. If you encounter other strange problems, please help to add

Guess you like

Origin blog.csdn.net/zlfjavahome/article/details/131432269