how to start mongodb server in windows code example
Example 1: start mongodb
sudo systemctl start mongod
Example 2: windows start mongodb server
// Add the folder containing mongod to your PATH variable (see source for how)
// usually located here: 'C:\Program Files\MongoDB\Server\4.4\bin'
// open cmd.exe and run this command;
start mongod
Example 3: start mongod
mongod --dbpath <file_path> --port <port>