1、Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-10-23 17:55:42 CST; 2h 53min ago
admin@iZ2zjm1wZ:~$ sudo service mongod status
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-10-23 17:55:42 CST; 2h 53min ago
Docs: https://docs.mongodb.org/manual
Process: 25675 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=14)
Main PID: 25675 (code=exited, status=14)
Oct 23 17:55:42 iZ2zef51gzjm1wZ systemd[1]: Started MongoDB Database Server.
Oct 23 17:55:42 iZ2zef5gzjm1wZ systemd[1]: mongod.service: Main process exited, code=exited, status=14/n/a
Oct 23 17:55:42 iZ2zefzjm1wZ systemd[1]: mongod.service: Failed with result 'exit-code'.
解决方案:详见博文:解决按照官方文档安装MongoDB后启动失败的问题(Ubuntu)___Samual的博客-CSDN博客_mongodb安装后启动失败