![]() This should tell you the shell version and connect you to the ‘test’ database that ships with Mongo. To enter the MongoDB shell, in terminal simply enter: mongo We’ll use this to verify everything is running correctly. You should now see a confirmation along the lines of mongodb start/running, process 15251 Using the MongoDB command line shell In terminal enter: sudo service mongodb start Let’s start it up as an Upstart service (more on Upstart at another time). You want to test to make sure that it’s installed correctly? Fair enough. That’s it! As soon as that’s finished downloading and processing you’ll have MongoDB installed. Open a terminal window and enter: sudo apt-get install mongodb Fortunately this has all been fixed, and it’s now super easy to install MongoDB on Ubuntu. If you Google how to do this you might get put off, as you’ll find a load of pages with different workarounds to get MongoDB installed correctly, Q&A threads on fixing install errors etc. MongoDB (from “hu mongous”) is a scalable, high-performance, open source NoSQL database. There are a whole bunch of databases that we could use, but we’re going to go with a popular choice for Node.js development, MongoDB. ![]() Having a node.js website without a database in the backend is going to be pretty limiting! So let’s address that. ![]() Menu How to install MongoDB on Ubuntu for Node.js 16 July 2012 on mongodb, node.js, nodejs, ubuntu
0 Comments
Leave a Reply. |