When installing Redis under windows, an error is reported at the first startup:
[2368] 21 Apr 02:57:05.611 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
Solution: Run in the command line
redis-cli.exe
127.0.0.1:6379>shutdown
not connected>exit
Then re-run redis-server.exe redis.windows.conf, the startup is successful!
Start Redis
Open the command window directly in the directory above, and run:
- redis – server redis . windows . conf
The results on the tragedy, QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.: unknown error
tips: . The reason is the memory allocation problem (if your computer is powerful enough, it may not be a problem). There are two solutions. First: Use --maxmemory
commands to limit Redis memory at startup :
- redis – server redis . windows . conf – maxmemory 200m
The second method is to modify the configuration file redis.windows.conf
:
- maxmemory 209715200
Note that the unit is byte, after the change is as follows:
Then run redis-server redis.windows.conf
it to start:
But here comes the problem again. Redis will be closed when the cmd window is closed. Is it necessary to keep the server open? This is obviously unscientific, let’s see how to deploy on the server.
Deploy Redis
In fact, Redis can be installed as a windows service. It starts automatically after booting. The command is as follows:
- redis – server – service – install redis . windows . conf
After the installation is complete, you can see that Redis has been used as a windows service:
But after the installation, Redis did not start, the startup command is as follows:
- redis – server – service – start
Stop command:
- redis – server – service – stop
Read More:
- [Solved] Redis Error: Creating Server TCP listening socket *:6379: bind: No error
- [Solved] Redis Error: creating server tcp listening socket 127.0.0.1:6379: bind No error
- [Solved] Zabbix-server startup error: cannot start alert manager service: Cannot bind socket to “/var/run/zabbix/zabbix_server_alerter.sock”: [13] Permission denied.
- [Solved] Windows Nginx Startup Error: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket
- Redis cannot double-click redis-server.exe to start normally
- Flask Startup Error: s.bind(server_address)PermissionError: [Errno 13] Permission denied
- [Solved] Mac starts redis error: there is no specified conf file
- [Solved] Redis Startup Error: FATAL CONFIG FILE ERROR
- [Solved] Redis—-(error) MISCONF Redis is configured to save RDB snapshots
- [Solved] Redis Execute redis-cli shutdown Error: (error) ERR Errors trying to SHUTDOWN. Check logs.
- [Solved] SpringBoot integration with Redis error: java.net.ConnectException: Connection refused: no further information
- When integrating redis with SSM framework, error creating bean with name ‘rediscontentserviceimpl’ defined in file
- socket java.net.BindException: bind failed: EACCES (Permission denied)
- [Solved] Redis Error: Error creating bean with name stringRedisTemplate defined in class path resource
- [Solved] Redis Cache Error: org.springframework.data.redis.serializer.SerializationException: Could not read JSON..
- [Solved] ERROR OGG-01232 Receive TCP params error: TCP/IP error 104 (Connection reset by peer), endpoint:
- [Solved] redis Error: Can‘t save in background fork Cannot allocate memory
- Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException
- [Solved] Error in integrating redis with springboot: unable to connect to redis
- [Solved] nacos Startup Error: Error creating bean with name ‘authFilterRegistration‘ defined in class path resource