Home > Database > MongoDB > body text

How to run MongoDB shell using mongos command?

王林
Release: 2023-09-12 15:33:07
forward
1235 people have browsed it

In order to start the MongoDB shell, you need to use the mongo command. The following is the syntax-

>mongo
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template