I apparently have a redis-server
instance running because when I try to start a new server by entering redis-server
, I'm greeted with the following:
Opening port: bind: Address already in use
I can't figure out how to stop this server and start a new one.
Is there any command I can append to redis-server
when I'm typing in the CLI?
My OS is Ubuntu 10.04.
Type
SHUTDOWN
in the CLIor
if your don't care about your data in memory, you may also type
SHUTDOWN NOSAVE
to force shutdown the server.Either connect to node instance and use shutdown command or if you are on ubuntu you can try to restart redis server through init.d:
or stop/start it:
On Mac
Try
killall redis-server
. You may also useps aux
to find the name and pid of your server, and then kill it withkill -9 here_pid_number
.If you are running redis in a docker container, none of the present answers will help. You have to stop redis container. Otherwise, redis process will keep respawning.
redis-cli shutdown
is most effective. The accepted answer does not work for me (OSX Lion). Thanks, @JesseBuesking.stop the redis server type in terminal with root user
the message will be display after stop the redis-server
if you want to start the redis-server type
if you want to restart the server type