
一: 报错信息:
[root@www log]# journalctl -xe
-- Unit mongodb.service has begun starting up.
'/usr/local/mongodb/mongdb7/bin/mongod --help' for more information
10月 03 13:47:39 www.yhchange.com systemd[1]: mongodb.service: control process exited, code=exited status=2
10月 03 13:47:39 www.yhchange.com systemd[1]: Failed to start mongodb.
-- Subject: Unit mongodb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mongodb.service has failed.
--
-- The result is failed.
10月 03 13:47:39 www.yhchange.com systemd[1]: Unit mongodb.service entered failed state.
10月 03 13:47:39 www.yhchange.com systemd[1]: mongodb.service failed.
10月 03 13:47:39 www.yhchange.com polkitd[656]: Unregist

文章讲述了在启动MongoDB服务时遇到的错误,发现是由于mongodb.conf文件缺少fork=true配置,修复后重启成功。还提到了通过WebSockets订阅MongoDB更改流的方法。
最低0.47元/天 解锁文章
1048

被折叠的 条评论
为什么被折叠?



