Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redis start as service [unrecognized service error] [closed]

I install redis on Ubuntu 14.04. I want to start redis as service. but I can't do that. firstly , I cant start and stop redis server by using following commands:

sudo /etc/init.d/redis-server start
sudo /etc/init.d/redis-server stop

But I try following command to start as service , I get "redis-service: unrecognized service"

sudo service redis-service start

I wait your helps, thanks

like image 946
yunus kula Avatar asked Mar 09 '15 11:03

yunus kula


2 Answers

try: sudo service redis-server start

like image 79
kev Avatar answered Oct 21 '22 08:10

kev


If you've used the defaults, your Redis service is actually named redis_6379 - try the following:

sudo service redis_6379 start
like image 35
Itamar Haber Avatar answered Oct 21 '22 08:10

Itamar Haber