首页 > 解决方案 > 在 WSL 上安装后未启动 memgraph 服务

问题描述

在 Linux 的 windows 子系统上安装 memgraph 的 debian 包之后。memgraph 不会自动启动。

为 memgraph 安装 debian 软件包。chattr 会显示一些错误,例如

chattr:读取 /usr/share/memgraph/examples/Europe/snapshots 上的标志时,设备的 ioctl 不合适。

之后 memgraph 没有启动。运行systemctl start memgraph 给出

错误无法连接到总线:没有这样的文件或目录。

这是预期的,因为 WSL 不支持 systemd。

那么,如何在 WSL shell 中启动 memgraph。

标签: installationwindows-subsystem-for-linuxmemgraphdb

解决方案


默认情况下,systemdWSL 上没有,这意味着 Memgraph 不会自动运行。

尝试通过执行以下 shell 命令手动运行 Memgraph:

/usr/lib/memgraph/memgraph

具体路径取决于您使用哪个 Linux。

locate memgraph

可能会帮助您找出正确的路径。


推荐阅读