How to use --fork in Windows OS?

I am trying to execute below command to connect MongoDB in Windows OS,

mongod --dbpath /data --logpath /data/mongodb.log --fork

Error:

Error parsing command line: unrecognised option '--fork'
try 'mongod --help' for more information

I knew the --fork option is only support in Linux OS, Is there any option to use in Windows OS?

You may start mongod as a Windows service.

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.