D) Verify that you can connect and run command Open a command prompt. Then look for Mongo DB2.6 instance > right click it and choose Start. If you don't set MongoDB up as a service, you will have to run the MongoDB server every time. C) To start the service, you can either run this command: net start 'Mongo DB2.6 instance' OR type services in the Search for programs and files box. For example, you can have MongoDB run at startup and restart on failures. create a Admin user in the Admin collection.īinPath=“\”C:\MongoDB\Server\4.0\bin\mongod.exe\”Ĭonfig=\”C:\MongoDB\Server\4.0\bin\mongod. Running MongoDB as a service gives you some flexibility with how you can run and deploy MongoDB.Path: C:\MongoDB\Server\4.0\log\mongod.log ![]() My goal is when windows boot mongodb as a service with authentication start( you can not enter the database without authenticate) but I can not manage to do it on a windows machine ( in linux it worked)Ĭhange conf from default to the following
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |