I installed mongodb on Ubuntu 22.04, when I started it and checked its status it says failed.
I followed the instruction on the mongodb installation page and also watched other videos with the same issue but mine keeps failing.
Here’s my terminal:
haphoera@Ubuntu:~$ sudo systemctl start mongod
haphoera@Ubuntu:~$ sudo systemctl status mongod
× mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disa>
Active: failed (Result: core-dump) since Mon 2024-06-03 >
Docs: https://docs.mongodb.org/manual
Process: 45872 ExecStart=/usr/bin/mongod --config /etc/mo>
Main PID: 45872 (code=dumped, signal=ILL)
CPU: 24ms
Jun 03 05:11:53 Ubuntu systemd[1]: Started MongoDB Database S>
Jun 03 05:11:53 Ubuntu systemd[1]: mongod.service: Main proce>
Jun 03 05:11:53 Ubuntu systemd[1]: mongod.service: Failed wit>
lines 1-11/11 (END)