Get the App
SLTechnology News&Howtos  ›  Servers  › 

Redis fault handling process is already running or crashed

Shulou Source: shulou.com Published: 2022-06-02 11:51:38 10月03日 Update

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

Tags: Important data files results testing consistency rudeness anger backup antenna password copy method time useful directory if problem enforcement verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Xiaomi Shulou Technology Shulou Information Linux