sudo systemctl enable mongod.service code example
Example 1: Failed to enable unit: Unit file mongod.service does not exist.
> sudo systemctl enable mongodb.service
Example 2: Failed to enable unit: Unit file mongod.service does not exist.
> systemctl list-unit-files --type=service
...
mongodb.service enabled
...