Answers for "service redis restart"

0

service redis restart

brew services start|run redis 
brew services stop redis
brew services restart redis
Posted by: Guest on October-20-2021
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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language