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.
A cleaner, more reliable way is to go into redis-cli and then type
shutdown
In redis-cli, type
help @server
and you will see this near the bottom of the list:And if you have a redis-server instance running in a terminal, you'll see this:
In my case it was:
To find out what is your service name, you can run:
And it will show you every Redis files in your system.
The commands below works for me on Ubuntu Server
Following worked for me on MAC
MacOSX - It Worked :)
Step 1 : Find the previously Running Redis Server
Step 2 : Kill the specific process by finding PID (Process ID) - Redis Sever
If you know on what port it would be running(by default it would be 6379), you can use below command to get the pid of the process using that port and then can execute kill command for the same pid.
the above command will give you pid.
kill
<pid>
;This would shutdown your server.