In our previous tutorial, we have learnt about MongoDB Shell. There is a little difference how Mongo Script execution behaves from that of a Mongo Shell. We shall learn about these differences in next tutorial.
Let us quickly look into an example of Mongo Script.
Start Mongo Daemon.
Run the following command in terminalNow Mongo Daemon would be waiting for connections on port 27017123~$ sudo mongod --port 27017 --dbpath /var/lib/mongodb