-
We install it on windows using the MSI version (https://www.mongodb.com/try/download/community?tck=docs_server), cutomize the installation to "c:/mongodb"
-
Add the "data/db" and "logs"" dirs into the installation directory which you already customized.
-
From the CMD "As administrator", configure the logs and databases directories, and start the mongoDB service:
- from the "bin "directory run the following command>>>
mongod --directorydb --dpath c:\mongodb\data\db --logpath c:\mongodb\log\mongo.log --logappend --rest --install
- from the "bin "directory run the following command>>>
-
Now we can run the mongodb service
- net start mongodb
-
Putting your mongoDBHome/bin to the enviroment variables Paths:
- so you can run the Shell of MongoDb using the command '>mongo'
- Follow the instructions in this tutourial to install MongoDB 4.4 Community Edition on LTS (long-term support) releases of Ubuntu Linux using the apt package manager.
- Genrally Speaking, you can also follow this link to install MongoDB Community Edition for supported Linux systems.
Simply clone the repository and run
docker-compose upThe following docker compose file will build the notebook container which includes all the required dependencies. Services are also exposed to the host network so you can connect to the via localhost.
version: "3"
services:
mongo:
image: mongo
ports:
- 27017:27017
- 27018:27018
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME:
MONGO_INITDB_ROOT_PASSWORD:
notebook:
build: notebook/
ports:
- 8888:8888
volumes:
- ./:/home/jovyan/work/data
environment:
- GRANT_SUDO=yesGood to know (MongoDB in the Cloud (Mongo-Atlas))
- If you are using MongoDB in the Cloud (Atlas), you will need to: