When I am trying to install mongodb in my Ubuntu box, apt-get shows me the following options
mongodb mongodb-clients mongodb-dev mongodb-server
Can anyone please tell me the difference between mongodb and mongodb-server?
mongod is the "Mongo Daemon" it's basically the host process for the database. When you start. mongod you're basically saying "start the MongoDB process and run it in the background". mongod has several default parameters, such as storing data in /data/db and running on port 27017.
The Community version of our distributed database offers a flexible document data model along with support for ad-hoc queries, secondary indexing, and real-time aggregations to provide powerful ways to access and analyze your data.
MongoDB has a broader approval, being mentioned in 2189 company stacks & 2225 developers stacks; compared to MongoDB Atlas, which is listed in 51 company stacks and 43 developer stacks.
By default, MongoDB listens for connections from clients on port 27017 , and stores data in the /data/db directory. On Windows, this path is on the drive from which you start MongoDB. For example, if you do not specify a --dbpath , starting a MongoDB server on the C:\ drive stores all data files in C:\data\db .
Package mongodb installs full set of packages - client, admin tools, development files, mongod (mongodb daemon) and mongos (shard routing service), while mongodb-server installs only mongod and mongos (and logs / docs).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With