Home>Article>Database> How to run MongoDB shell using mongos command?

How to run MongoDB shell using mongos command?

王林
王林 forward
2023-09-12 15:33:07 1121browse

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-

如何使用 mongos 命令运行 MongoDB shell?

This is the command to start the mongo shell as shown in the screenshot below -

如何使用 mongos 命令运行 MongoDB shell?

This will produce the following Output-

如何使用 mongos 命令运行 MongoDB shell?

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete