无法启动 mongodb

无法启动 mongodb

我一直在尝试卸载并重新安装mongodb,但总是失败。

campagnollo@campagnollo-Galago-Pro:~$ sudo systemctl status mongodb
● mongodb.service - High-performance, schema-free document-oriented >database
   Loaded: loaded (/etc/systemd/system/mongodb.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2019-11-11 22:16:54 EST; 50s ago
 Main PID: 10370 (code=exited, status=2)

Nov 11 22:16:54 campagnollo-Galago-Pro systemd[1]: Started High-performance, schema-free document-ori
Nov 11 22:16:54 campagnollo-Galago-Pro mongod[10370]: Error reading config file: No such file or dire
Nov 11 22:16:54 campagnollo-Galago-Pro mongod[10370]: try '/usr/bin/mongod --help' for more informati
Nov 11 22:16:54 campagnollo-Galago-Pro systemd[1]: mongodb.service: Main process exited, code=exited,
Nov 11 22:16:54 campagnollo-Galago-Pro systemd[1]: mongodb.service: Failed with result 'exit-code'.

答案1

你的Ubuntu版本是什么?您检查过 mongodb.conf 文件的内容吗?检查/lib/systemd/system/mongod.service配置标志指向的位置。

相关内容