Starting and stopping MongoDB
Before you begin
About this task
When you complete the prerequisite task, a service is created. Use the service to start and stop the MongoDB server.
Windows:
- Navigate to the Control Panel and open the Services.
- Locate the MongoDB service from the list and use the start and stop buttons.
Linux:
- Services are started and stopped using a command line.
- To start the server, enter the command:
service mongod start
- To stop the server, enter the command:
service mongod stop