You just try to start the mongodb by
service mongod start
or
start mongod
And check mongodb process is running by checking
ps aux | grep mongo
You can see the status by
service mongod status
If it is not starting then try to remove the mongod lock file by,
rm /var/lib/mongodb/mongod.lock
Then start the mongodb server again.
Like this:
Like Loading...
Related
Author: Abhilash
Hey!
This is Abhilash - Ruby developer, specialised on web development. Experienced with frameworks such as Rails, Angular, Sinatra, Laravel, NodeJS etc.
I am working on Ruby on Rails platform since 2010. This blog is about Ruby, Ruby On Rails and other subjects that I have had experienced with.
You can contact me here: abhilash.amballur@gmail.com
LinkedIn: www.linkedin.com/in/abhilashak
View all posts by Abhilash
If any one using Linux, should also try below steps.
$ sudo rm /var/lib/mongodb/mongod.lock
$ mongod –repair
$ sudo start mongodb
$ sudo status mongodb
$ mongo