start a mongodb server code example
Example 1: start mongodb
sudo systemctl start mongod
Example 2: start mongod
mongod --dbpath <file_path> --port <port>
sudo systemctl start mongod
mongod --dbpath <file_path> --port <port>