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 says "...bind: Address already in use" so it is already running.
I have tried
redis-cli
redis 127.0.0.1:6379> shutdown
It just hangs and nothing happens. I break out and check, yes, it is still running.
I have tried
redis-server stop
I get "can't open config file 'stop'"
I tried:
killall redis-server
Still running.
The reason that I want to stop it is that it is just hanging when I try to set or get a value via Python. So I thought that I would restart it.
EDIT:
No commands seem to work from redis-cli. I also tried INFO and it just hangs.
$REDIS_HOME
where you have installed/extracted redis.i think shutdown command can shutdown the redis server. Maybe strange,after typed shutdown command,the redis-cli does not exit.Meanwhile ,the server has shutdowned.
Best way check pid of redis opened port :
for default redis port
Shutdown Redis Server
$ redis-cli -a password -p 6379 shutdown
Start Redis Server
$ sudo service redis_6379 start
It works on Ubuntu Server 14.04 x86 Redis v2.8.15.
net stop redis
should do the trick
to start :
net start redis
see this https://stackoverflow.com/a/20153062
You use the following command to kill the running redis-server process.
This will list all the running processes for redis-server. Then you can use the following command to kill the redis processes
sample here