Rico Chan
Rico Chan

Reputation: 2396

How to restart mongodb from windows services

I have a mongodb installed as Windows services,

after that I have updated the config file: mongod.cfg

I want to restart the services so that it can reload my configs,

how can I restart the MongoDB services?

Environment:

Windows 10

MongoDB 4.2

Installation Path: C:\Program Files\MongoDB\Server\4.2\bin

Upvotes: 2

Views: 4821

Answers (1)

Ali Bigdeli
Ali Bigdeli

Reputation: 1375

Mongodb default service name is MongoDb you can find it in your system Services (run services.msc or search it into your searchbox-if there is any), you can restart your server in cmd using flowing command:

sc start  MongoDb

or in powershell :

Start-Service -Name MongoDb

Upvotes: 6

Related Questions