Redis startup error

Redis startup error Creating Server TCP listening socket 127.0.0.1:6379: bind: No error

Solution (1)

First of all, if you download it from the official redis official github , there are two official ones in the .msi format, one is the zip, which is the installation version and the green compressed version:
I won't write
mainly the latter, which runs on the windows system and uses The configuration file is redis.windows.conf, which is mainly written for windows. Only support command start, so if you just click redis-server.exe to start, an error will be reported, the error reported is the error of the title Creating Server TCP listening socket 127.0.0.1:6379, so start with the command line, configure the environment variable in the startup mode or Enter cmd under the directory folder and run redis-server.exe redis.windows.conf.

Solution (2)

If the startup has not been successful, the possible reason is that maxheap is not specified. Of course, if this parameter is not specified, an error may not be reported, but the above reasons are usually caused by this reason.

At this time, go to the directory like the above method and execute the command

redis-server.exe redis.windows.conf –maxheap 200m

This is a temporary way, you can also enter redis.windows.conf and finally increase the configuration maxheap 200m

If you need to register Redis as a service:

​ 1. First enter the redis directory, and then execute the command: redis-server –server-uninstall

​ 2. Reinstall the service after uninstallation: redis-server.exe –service-install redis.windows.conf –maxheap 200m.

If there are other errors later, the update will continue. . . .

Guess you like

Origin blog.csdn.net/hu_lichao/article/details/79154350