3

Just exactly how do you shutdown Redis on a Mac OS X server?

I tried doing it via the CLI but this doesn't work:

$ redis-cli
127.0.0.1:6379> shutdown
not connected> quit

I also tried executing the redis-cli command using "sudo" but that didn't make a difference.

I tried killing the process but it just restarts itself with a new PID:

$ sudo kill -9 <pid>

I've checked the "requirepass" setting in /usr/local/etc/redis.conf but no password is being set.

I also checked this question, this, and this but none of them yielded a solution. You'd think the Redis documentation would tell how to do this. Very frustrating.

Thanks.

2

2 Answers 2

5

Just had this issue. I forgot I had installed it with brew and had set it up to be on by default so I was shutting it down but it just came back. brew services stop redis

Sign up to request clarification or add additional context in comments.

Comments

1

Its already working when you give the command the "shutdown". Its showing not connected just after that. You can verify the same by

ps aux | grep redis-server 

2 Comments

That's not correct. I can still see the process running.
@Jim You need to grab it's process id (4 or 5 digit)/ usually on second column from result above and hit next command kill -9 1234

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.