I am using Ubuntu to develop my website. Recently, I started to use redis.
When I started my computer, redis-server will start by its own.
What method can I stop my redis-server starting by itself?
You can gracefully shutdown Redis instances (sentinel, slave and master) with the shutdown command. For Redis version older than 3.0 (not very sure), there's no shutdown command for Redis sentinel. But you can just use killall or kill -9 process_id to kill it without any side effect.
It seems that the redis-server
package uses rc.d
scripts, and the preferred way to deal with them in Ubuntu is using update-rc.d
:
sudo update-rc.d redis-server disable
Should do the trick. You can also disable it in a certain runlevel only:
sudo update-rc.d redis-server disable 2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With