Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop redis-server autostart

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?

like image 706
LiJung Avatar asked Aug 08 '12 03:08

LiJung


People also ask

How do I stop Redis Sentinel?

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.


1 Answers

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  
like image 136
Linus Thiel Avatar answered Oct 11 '22 07:10

Linus Thiel