Error log
root@[IP]:~/work/menu/flask# service mongod status
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: failed (Result: signal) since Thu 2022-04-07 03:12:29 JST; 2 months 14 days ago
Docs: https://docs.mongodb.org/manual
Main PID: 3082352 (code=killed, signal=KILL)
Solution
sudo chown -R mongodb:mongodb /var/lib/mongodb
sudo chown mongodb:mongodb /tmp/mongodb-27017.sock