![install mongodb in ubuntu 12.04 install mongodb in ubuntu 12.04](https://pritunl.com/img/antergos.png)
Open a terminal window and issue command sudo apt-get update & sudo apt-get install -y mongodb-org Make sure to edit the version number with the appropriate latest version and save the file.
![install mongodb in ubuntu 12.04 install mongodb in ubuntu 12.04](https://www.ithack.it/wp-content/uploads/2020/03/img_mongodb_2-1024x512.png)
![install mongodb in ubuntu 12.04 install mongodb in ubuntu 12.04](https://1.bp.blogspot.com/-AFlpCyY8D0w/WHeZzqarnWI/AAAAAAAAIdY/pXqtxmSuwKouACbQClDR9LYmerDo_wdcgCLcB/s1600/mongodb.jpg)
#Install mongodb in ubuntu 12.04 manual#
I installed mongo server on Debian Jessie using manual from official site. From what I've read, i should be using sudo service mongodb start mongodĪny ideas on why I can't start it using the service command would be appreciated. Upstart job, you may also use the start(8) utility, e.g. Since the script you are attempting to invoke has been converted to an Rather than invoking init scripts through /etc/init.d, use the service(8) Journal local.0 local.ns sudo service mongodb startīut I can start it using /etc/init.d as you can see below: sudo /etc/init.d/mongod start I deleted the lock file and then retried my command but it still fails as you can see below: sudo rm ls Which made a comment about remove the mongo lock file. I found another post here: can't start mongodb as sudo Mongodb: unrecognized is what I have in my /var/log/mongodb/mongod.log. I get the following error message: sudo service mongodb restart So I decided to try to restart the service but that's failing too. I tried to start the shell but I'm getting a connection refused error. I just installed mongoDB on ubuntu 14.0.4.