![]() Now MongoDB will be running in your Windows Machine. > After installation create a directory for database elsewhere (ie c:data)Īfter installation switch to the installation folder. #Setting up node js windows 7 install#> Download MongoDB for windows from the link and install as typical windows installation. Stop MongoDB by using the command sudo service mongod stop Windows Start MongoDB by using the command sudo service mongod start Now MongoDB will be installed in your Ubuntu Machine. Sudo apt-key adv -keyserver hkp://:80 -recv 7F0CEB1 echo 'deb dist 10gen' | sudo tee /etc/apt//mongodb.list sudo apt-get update sudo apt-get install mongodb-org To setup MongoDB in Ubuntu open the terminal and enter the following commands. Now Node.js will be running in the port 8080 in localhost. Now open the terminal or command prompt and run it as node hello.js Open a text document and enter the following code and save it as hello.js var http = require('http') >To test open the command prompt and run the command to see the version of Node.js installed. >Just download the windows installer from the link and install as typical windows installation. Installing Node.js in Windows is as easy as eating a piece of cake. To test enter the command in the terminal which shows the Node.js version. Now Node.js will now be installed in your Ubuntu machine. > Then enter the following commands./configure > Then switch to the extracted directory via terminal. sudo apt-get install g++ curl libssl-dev apache2-utils sudo apt-get install nodejs Compile from sources (Alternate Method) ![]() Ubuntu users can easily install Node.js from the repository using the command in terminal. ![]() We will be using these technologies with our Android projects later. In this tutorial we are going to Setup Node.js platform and MongoDB database in Ubuntu and Windows. Node.js and MongoDB are hot technologies available today used in various real time applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |