Install mongodb in Ubuntu Desktop 18.04

Installing the official MongoDB packages provided by MongoDB didn’t allow the mongod to start the service and returned the following error:

Failed to start mongod.service: Unit mongod.service not found

That is not good, because that would required me to start the mongodb manually:

mongod –dbpath some-path/to-store-mongodb-db-data

Instead, I installed the unofficial mongodb package provided by Ubuntu, and it just works fine when I start the service:

sudo systemctl start mongodb

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s