start mongod Failed with result 'exit-code'
$ sudo rm -rf /tmp/mongodb-27017.sock
$ sudo service mongod start
start mongod Failed with result 'exit-code'
$ sudo rm -rf /tmp/mongodb-27017.sock
$ sudo service mongod start
mongodb active failed (result exit-code)
chown -R mongodb:mongodb /var/lib/mongodb
chown mongodb:mongodb /tmp/mongodb-27017.sock
mongod.service: Failed with result 'exit-code'.
chown -R mongodb:mongodb /var/lib/mongodb
chown mongodb:mongodb /tmp/mongodb-27017.sock
MongoDB.service failed with result exit-code
# MongoDB.service failed with result exit-code
# check permissions below directories using cmd:
ls -l
# directories checklist:
/var/lib/mongodb
/var/log/mongodb
/tmp/mongodb-27017.sock
# Above directories must have prmsn mongodb:mongodb if not below cmd:
chown -R mongodb:mongodb
#(-R) for recursive dir, if file remove it
# if all have same permission then its good
sudo service mongod start
# if not same then remove it ...
sudo rm -rf /file_or_folder_name/
### start with below comands
sudo service mongod start
sudo service mongod status
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us