installation
Gudjon edited this page Jun 20, 2017
·
2 revisions
Do not have spaces in the installation folder for example do NOT install to "C:\Program Files\MongoDB", better would be "C:\MongoDB"
C:\MongoDB\Server\3.2\bin\mongod.exe
mongod
If you are having problem installing mongoDB on windows 7, then you could try the following.
- Do not have spaces in the installation folder for example do NOT install to "C:\Program Files\MongoDB", better would be "C:\MongoDB"
- Try to run Run : "C:\MongoDB\Server\3.2\bin\mongod.exe"
- If you get a hotfix error when running Mongo, install this Hotifx and goto step 2.
- if you are still having problems then this worked for me. Open the command window (cmd) and do the following.
C:
cd C:\MongoDB\Server\3.2
mkdir data
mkdir data\db
mkdir log
cd bin
mongod.exe --directoryperdb --dbpath C:\MongoDB\Server\3.2\data\db --logpath C:\MongoDB\Server\3.2\log\mongodb.log --logappend
Assuming that you do not have Mongodb, nodejs or npm installed. This would be the process you would follow.
sudo apt-get update
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get install -y mongodb-org
# Create dir to store data and run mongodb
sudo mkdir /data
sudo mkdir /data/db
sudo mongod
sudo apt-get install -y nodejs
sudo apt install npm
npm install
node app
npm install
node app
And the go to a modern web browser and visit the url http://localhost:6100
I use the Visual Studio Code editor for debugging and developing.
But you can use grunt if you want, and to use grunt you just type grunt.
grunt