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

Redis fault handling process is already running or crashed

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

Share

Shulou(Shulou.com)06/02 Report--

Today online a test library redis, add auth password verification, I want to restart redis, do not restart does not take effect. No matter what happens, NOAUTH Authentication is required. redis-cli -a 123456 shutdown unexpectedly did not use, in anger, forced shutdown, kill -9 redis pid number.

And then it starts. The requested URL/var/run/redis_6379.pid exists, process is already running or crashed.

Since it was a test library, the data in it was not too important, and the solution was rather crude.

I'll just back up the dump.rdb file to another directory,

Then delete the pid number of (rm -rf /var/run/redis_6379.pid) redis

Start directly [root@localhost6379]# /etc/init.d/redis_6379 start

It's working.

So the question is, what if the data is more important? Just copy the dump.rdb file back?

no kill no die

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

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report