redis - WSL Redis 遇到 System has not been booted with systemd as init system (PID 1)。不能操作

标签 redis windows-subsystem-for-linux ubuntu-18.04

<分区>

我正在尝试按照此 article 中讨论的 Redis 安装过程进行操作 digital ocean ,用于 WSL(Linux 的 Windows 子系统)。安装的Ubuntu版本为Ubuntu 18.04。

redis 安装中的一切都很好,但是当我尝试运行此 sudo systemctl start redis 时,我收到了这条消息。

System has not been booted with systemd as init system (PID 1). Can't operate.

关于我应该怎么做的任何想法?

最佳答案

相反,使用:sudo service redis-server start

我遇到了同样的问题,从 WSL 上的 Ubuntu 中停止/启动其他服务。这有效,而 systemctl 没有。

人们可能会疑惑,“你怎么知道服务名称是‘redis-server’?”您可以使用 service --status-all

查看它们

关于redis - WSL Redis 遇到 System has not been booted with systemd as init system (PID 1)。不能操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52197246/

相关文章:

ubuntu-12.04 - Windows 子系统 WSL Ubuntu 升级 18.04 至 20.04 问题

ubuntu - 无法在 Ubuntu 中安装或卸载任何东西 - 处理因错误太多而停止

amazon-web-services - Redis——它是如何提高性能的?

redis - Redis "OOM command not allowed when used memory > ' maxmemory'”错误如何调试?

windows - 如何让 Oracle vm VirtualBox 6.0 和 wsl 同时工作

bash - 在 WSL 上从 Bash 打开 Sublime Text

docker - GitLab 部署 token 在 EC2 Ubuntu 18.04 AMI 上失败,其他任何地方都没有

audio - 在使用Windows 10双启动的全新Ubuntu 18.04.5系统上没有声音

java - CAS 服务器 Tomcat 8 Java 8 高可用性(HA/集群)

c# - ServiceStack.Redis 无法解析