Installation on Linux

To install MongoDB on Linux, follow the instructions provided on the MongoDB installation site.

https://docs.mongodb.com/v3.2/installation/

To make sure MongoDB does not exceed software limits on Linux, you need to change the ulimit settings. ulimit refers to the per-user limitations for various resources.

To change ulimit settings, issue a command in the following form:

ulimit -n <value>

Warning:

According to your system’s configuration, any change to system limits made by using ulimit may revert after a system restart.

Check your distribution and operating system documentation on how to make the change persistent.

Example

To limit the maximum open files to 64000, issue ulimit -n 64000 in the config file.