Mongodb 绑定到IPv6地址不可用,因为内核不支持IPv6

Mongodb 绑定到IPv6地址不可用,因为内核不支持IPv6,mongodb,ipv6,systemctl,Mongodb,Ipv6,Systemctl,正在尝试自动启动mongodb,但不起作用 $sudo systemctl status mongod.service-l ● 服务-高性能、无模式的面向文档的数据库 已加载:错误(原因:参数无效) 活动:非活动(死) 文件: 11月3日00:28:08 xxxxx systemd[1]:mongod.service缺少ExecStart=和ExecStop=设置。拒绝。 11月3日00:28:13 xxxx systemd[1]:mongod.service缺少ExecStart=和ExecS

正在尝试自动启动mongodb,但不起作用

$sudo systemctl status mongod.service-l ● 服务-高性能、无模式的面向文档的数据库 已加载:错误(原因:参数无效) 活动:非活动(死) 文件:

11月3日00:28:08 xxxxx systemd[1]:mongod.service缺少ExecStart=和ExecStop=设置。拒绝。 11月3日00:28:13 xxxx systemd[1]:mongod.service缺少ExecStart=和ExecStop=设置。拒绝

$sudo systemd analyze verify/usr/lib/systemd/system/mongod.service
绑定到IPv6地址不可用,因为内核不支持IPv6。

我们在
/etc/systemd/system/mongod.service
/usr/lib/systemd/system/mongod.service
已删除文件
/etc/systemd/system/mongod.service
并运行
systemctl disable mongod
systemctl启用mongod

systemctl start mongod

许多现代软件都需要IPv6,很快一切都需要它。请与您的系统管理员联系,因为您的系统处于非常坏的状态。