Failed to start redis.service: Unit redis-server.service is masked

Raza Rafaideen picture Raza Rafaideen · Oct 29, 2016 · Viewed 38.6k times · Source

I Installed Redis Server on ubuntu 16.04. but when I try to start the redis service as

$ sudo systemctl start redis

I receive message:

Failed to start redis.service: Unit redis-server.service is masked.

I don't have any idea about this error.

Answer

Raza Rafaideen picture Raza Rafaideen · Oct 29, 2016

I found the solution. I think it will help for others | systemctl unmask servicename

$ sudo systemctl unmask  redis-server.service