As mentioned in the installation "mongod" file will works as a MongoDB server. So we need to run the mongod binary file or we need to start the service of mongod.
mongod is the primary daemon process for the MongoDB system. It handles data requests, manages data access, and performs background management operations.
Basic syntax of mongod is as follows
|--version||Returns the mongod release number|
|A configuration file for runtime configuration options (only ASCII encoding file)|
|--verbose, -v||Internal reporting will be returned on standard output|
|--port <port>||The TCP port on which the MongoDB instance listens for client connections.Default: 27017|
|--bind_ip <ip address>||The IP address that mongod binds to in order to listen for connections from applications|
|--maxConns <number>||The maximum number of simultaneous connections that mongod will accept.|
|--logpath <path>||Sends all logging information to a log file instead of to standard output. MongoDB will create a file if not exist but not folder structure.|
|--dbpath <path>||The directory where the mongod instance stores its data.Default: /data/db on Linux and OS X, \data\db on Windows|
Let’s view some examples for the usage of the above options
In Windows OS
In Linux Machines