Answers for "redis restart"

5

redis server stop

$ redis-cli shutdown
Posted by: Guest on September-30-2020
1

start redis server

$ redis-server
Posted by: Guest on November-10-2020
0

brew stop redis

brew services start|run redis 
brew services stop redis
Posted by: Guest on September-27-2020
0

script for restart redis service automatically

#!/bin/bash
a=$(redis-cli -p 6379 PING)
if [ "$a" = "PONG" ]
then
    echo 'Already running'
else
    b=$(/etc/init.d/redis_6379 start)   
    echo $b
fi
Posted by: Guest on November-22-2020

Browse Popular Code Answers by Language