Stop redis server. Neither shutdown nor stop works

后端 未结 16 813
深忆病人
深忆病人 2021-01-31 08:43

I want to stop the redis server and it just keeps going and going. I am using redis-2.6.7

Check that it is running:

redis-server

It say

16条回答
  •  滥情空心
    2021-01-31 08:50

    I finally got it down.

    Get the PID of the process (this worked in Webfaction):

    ps -u my_account -o pid,rss,command | grep redis
    

    Then

    > kill -9 the_pid
    

    I was able to REPRODUCE this issue:

    Start redis-server
    Then break it using Pause/Break key
    

    Now it hangs and it won't shutdown normally. Also the Python program trying to set/get a key hangs. To avoid this: Just close the window after starting redis-server. It's now running normally.

提交回复
热议问题