Start mongodb
$ systemctl start mongodb.service
Stop mongodb immediately
$ systemctl stop mongodb.service
Restart mongodb
$ systemctl restart mongodb.service
Show the status of a mongodb, including whether it is running or not
$ systemctl status mongodb.service
Check whether mongodb is already enabled or not
$ systemctl is-enabled mongodb.service
Enable mongodb to be started on bootup
$ systemctl enable mongodb.service
Disable mongodb to not start during bootup
$ systemctl disable mongodb.service