I too faced the exact problem mentioned by OP, even though I installed Mongodb using the official install tutorial ( ), The issue is that your system couldn't find rvice when you run sudo service mongod status. Now you can see mongod working but still the same issue is bothering you. To install a specific release, you must specify each component package individually along with the version number, as in the following example: sudo apt-get install -y mongodb-org=3.6.0 mongodb-org-server=3.6.0 mongodb-org-shell=3.6.0 mongodb-org-mongos=3.6.0 mongodb-org-tools=3.6.0 Now reinstall mongodb using following commands: sudo apt-key adv -keyserver hkp://:80 -recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5Įcho "deb xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt//mongodb-org-3.6.list Uninstall your mongo completely from your system: sudo service mongod stop Then all I had to do was copy my correct config to /etc/nf and run sudo service mongod restart Running this fixed it and restored the service: sudo systemctl enable mongod The problem was that my system couldn't find rvice when I ran sudo service mongod status. I reinstalled mongod-org, since my data will still stay safe.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |