Error installing mongodb 3.0 on linux Ubuntu 15.10?

6

I'm trying to install MongoDB on Ubuntu 15.10 , but, I can not 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 Mongo versions are not installed on versions that are not LTS of Ubuntu. But is there a way to bump it?

    
asked by anonymous 22.11.2015 / 19:19

1 answer

0
  • Install it with the command: sudo apt-get install mongodb-server

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

    It will probably display the following error message: 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**
    
  • After that, run the "sudo mongod" command again and the server will be online. To confirm, just run the command " ps aux | grep mongo "and if you have a result similar to that shown below is a sign that your server is ready to use:
  •   

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

        
    24.11.2015 / 12:13