Starting and stopping MongoDB

Modified: 22 Nov 2017 17:37 UTC

The MongoDB Server process is configured to run under the Service Management Facility (SMF). When you provision a MongoDB server, the MongoDB service is running by default. You can then use SMF to enable, stop or restart the service.

For more information about SMF, see [this topic](Using the Service Management Facility.html).

To disable or stop the service:

# svcadm disable mongodb

To enable or start the service:

# svcadm enable mongodb

To restart the service:

# svcadm restart mongodb