redis – System has not been booted with systemd as init system (PID 1). Cant operate
redis – System has not been booted with systemd as init system (PID 1). Cant operate
Instead, use: sudo service redis-server start
I had the same problem, stopping/starting other services from within Ubuntu on WSL. This worked, where systemctl did not.
And one could reasonably wonder, how would you know that the service name was redis-server? You can see them using service --status-all
Instead of using
sudo systemctl start redis
use:
sudo /etc/init.d/redis start
as of right now we do not have systemd in WSL
Or sometime it might be redis-server
, like:
>> sudo /etc/init.d/redis-server start
Starting redis-server: redis-server.
Just do a ls
, like: ls /etc/init.d
redis – System has not been booted with systemd as init system (PID 1). Cant operate
I had this problem running WSL 2
the solution was the command
$ sudo dockerd
if after that you still have a problem with permission, run the command:
$ sudo usermod -aG docker your-user