Sudo Service Mongod Start Code Example


Example 1: start mongodb service ubuntu

sudo systemctl start mongod sudo systemctl stop mongod

Example 2: remove mongo lock file from centos 7

sudo rm /var/lib/mongodb/mongod.lock sudo mongod --repair sudo service mongod start sudo service mongod status

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable