MongoDB in Fedora Linux – how is the configuration of the server

MongoDB in Fedora Linux – how is the configuration of the server

Mongoshell

The MongoShell is an interactive command window for the MongoDB database. You can use it for the CRUD operations. The MongoShell comes with the installation of MongoDB. After test, you type in the commands.

MongoDB Shell login You see the version of the database 7.0.25 and the version of the Shell 2.5.9

What is CRUD?

Create, Read, Update, Delete

The command for the MongoShell

It is possible that you see this message, but you can ignore it:

and type the command:

The output is in the JSON (JavaScript Object Notation) Format.


Description

‚/usr/bin/mongod‘, ‚-f‘, ‚/etc/mongod.conf‘ = The server has been started and committed to the config file of MongoDB.

config: ‚/etc/mongod.conf‘, = this is the path to the config file

net: { bindIp: ‚127.0.0.1‘, port: 27017 } = The server cannot be reached from outside

storage: { dbPath: ‚/var/lib/mongo‘ } = here are the database files are saved

path: ‚/var/log/mongodb/mongod.log‘ = where are the log files are saved

processManagement: { timeZoneInfo: ‚/usr/share/zoneinfo‘ }, = where is the time zone saved.