MEAN stack installation error

1

I am installing the MEAN Stack (MongoDB, Express, AngularJS, NodeJS) in ubuntu 16.04 when installing mongo I get the following error .. someone has solved this before?

Annex screnshot

Thanks in advance!

    
asked by LUIS ENRIQUE TREJO MONSIVAIS 21.05.2018 в 05:15
source

1 answer

0

Try as follows:

 1. sudo rm /var/lib/mongodb/mongod.lock
 2. sudo mongod --repair
 3. sudo service mongod start
 4. sudo service mongod status

Goes as follows, with rm the file mond.lock is deleted; then the second step is to repair the demon / mongo service.

Attempt to restart the service / daemon called mongod

At the end if the start is successful with the last and fourth step, the status of the service is verified

  

The .lock file is the one that stores the configuration of the versions   of some dependencies that requires mongodb to be able to function

Remember to execute the command with sudo so that you elevate the privileges and access as root

    
answered by 21.05.2018 в 05:33