Stop redis server. Neither shutdown nor stop works

后端 未结 16 811
深忆病人
深忆病人 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 09:04

    When setting up the server to require auth...

    The redis start and shutdown script utilizes redis-cli, which means that shutdown will not happen without auth and the server will hang in a loop waiting for redis to shutdown, which won't ever happen without auth.

    So in the shutdown script you have to change

    $CLIEXEC -p $REDISPORT shutdown
    

    to

    $CLIEXEC -a 'authpassword' -p $REDISPORT shutdown
    

    in order to allow your redis service to shutdown without hassle.

提交回复
热议问题