Solve the problem that redis cannot be started

Source: Internet
Author: User
Tags redis

Redis suddenly fails and cannot be started. Check the log and report Short read or OOM loading DB. Unrecoverable error, aborting now
Solution:

[Root @ localhost ~] # Rm-f/var/lib/redis/dump. rdb
[Root @ localhost ~] # Rm-f/var/run/redis. pid
[Root @ localhost ~] # Service redis start


Question 2

The Windows version of Redis allocates a memory mapped heap for sharing
The forked process used for persistence operations. In order to share this
Memory, Windows allocates from the system paging file a portion equal to
Size of the Redis heap. At this time there is insufficient contiguous free
Space available in the system paging file for this operation (Windows error
0x5AF). To work around this you may either increase the size of the system
Paging file, or decrease the size of the Redis heap with the -- maxheap flag.
Sometimes a reboot will defragment the system paging file sufficiently
This operation to complete successfully.
 
Please see the documentation encoded with the binary distributions for more
Details on the -- maxheap flag.

Probably means: there is not enough available space, you can increase the system size paging file, or reduce the size of the Redis heap
Use the -- maxheap flag

Sometimes restarting will fully organize the system paging files (restart can solve)
You can restart the command and add the maxheap parameter to re-allocate the heap size.

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


Question 3

The server cannot be started due to a redis configuration error.

Redis-server forgot to change the no of daemonize in the configuration to yes
Therefore, when the redis-server is added to/etc/rc. local, it will be blocked when the server is started, and the server cannot be started.
[Solution]
When GRUB is used, you can add an S (uppercase S) to the kernel command line to enter the single-user mode.
To do this, you need to restart the system. When the GRUB screen appears:

1. Use the arrow keys to select the kernel you want to boot.
2. Press the e key to edit the command line.
3. Select the line starting with the word "kernel.
4. Press the e key to edit the command line.
5. Add a letter S at the end of the row.
6. Press enter to accept changes.
7. Press the B key to accept the modification and start the kernel.
In this way, the system enters the single-user mode and can execute commands in bash.
Enter/etc/rc. local to modify the file back.

Delete the two rows.
Redis-server/home/redis. conf
Rabbitmq-server

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.