Error installing mongodb 3.0 on Ubuntu 15.10 Linux?

Asked

Viewed 489 times

5

I’m trying to install the MongoDB in the Ubuntu 15.10, but, I cannot install Mongo always returning the following error when starting the service.

Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.

I know that versions of Mongo are not installed in versions that are not LTS Ubuntu. But there is a way to say this?

  • Try sudo apt-get install --reinstall mongodb

  • What were your steps for this installation to fail?

  • still released an LTS in version 5.0 of that year 2021. Maybe it is the such conflict mentioned on the page. the mongodb package offered by debian has no link with Mongodb. Desistala mongodb and import the public key and specify the mirror in the list tried this way ?

1 answer

-2

  1. Install it with the command: sudo apt-get install mongodb-server

  2. After the installation is complete, try to start the server with the command: sudo mongod

    It will probably present the error message below: ERROR:

dbpath (/data/db) does not exist.
Isso significa que o diretório em questão não existe, então crie-o
com o comando:

**sudo mkdir -p /data/db**
  1. After that, run "sudo mongod" and the server again will be online. To confirm, just run the command "ps aux |grep Mongo" and if it has a result similar to the one presented below is sign that your server is ready for use:

mongodb 2648 0.6 8.8 389356 44140 ? Ssl 09:05 0:01 /usr/bin/mongod --config /etc/mongodb.conf

  • It did not work, missed attention to the fact that it is not a simple installation of mongodb.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.