Redis starts as a service [unrecognized service error]

I am installing redis on Ubuntu 14.04. I want to start redis as a service. but I can’t do it. Firstly, I cannot start and stop the redis server using the following commands:

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

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

 sudo service redis-service start 

I'm waiting for your help, thanks

+5
source share
4 answers

If you used the default settings, your Redis service is actually called redis_6379 - try the following:

 sudo service redis_6379 start 
+3
source

I think in order to configure redis as a service, you need to execute the following line.

 sudo update-rc.d redis-server defaults 
0
source

in your shell, use the following command: redis-cli shutdown or in the src folder use: ./redis-server

0
source

try: sudo service redis-server start

0
source

Source: https://habr.com/ru/post/1214971/


All Articles