In order to start the MongoDB shell, you need to use the mongo command. The following is the syntax-
>mongo
First enter the MongoDB bin directory from the command prompt, as shown in the figure below-
This is the command to start the mongo shell as shown in the screenshot below -
This will produce the following Output-
The above is the detailed content of How to run MongoDB shell using mongos command?. For more information, please follow other related articles on the PHP Chinese website!