Skip to Main Content
MongoDB
book

MongoDB

by Tobias Trelle
June 2014
Intermediate to advanced content levelIntermediate to advanced
290 pages
6h 22m
German
dpunkt
Content preview from MongoDB

A Referenz der Kommandozeilenoptionen

In diesem Kapitel finden Sie eine Referenz der Kommandozeilenoptionen der wichtigsten Programme wie der Mongo Shell und der Server-Programme mongod und mongos.

Im Folgenden sind in eckigen Klammern gesetzte Ausdrücke wie [optionen] optional, wohingegen Ausdrücke in spitzen Klammern wie <port> erforderliche Parameter darstellen.

A.1 Mongo – die Mongo Shell

Die interaktive Administrationsanwendung, die sogenannte Mongo Shell, wird über das Executable mongo gestartet:

$ mongo
MongoDB shell version: 2.x
connecting to: test
>

Per Default wird eine Verbindung zur Datenbank test auf dem Host localhost auf Port 27017 aufgebaut. Die vollständige Aufrufsyntax sieht so aus:

$ mongo [optionen] [datenbank] [Liste von ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical MongoDB: Architecting, Developing, and Administering MongoDB

Practical MongoDB: Architecting, Developing, and Administering MongoDB

Shakuntala Gupta Edward, Navin Sabharwal
MongoDB Basics

MongoDB Basics

David Hows, Peter Membrey, Eelco Plugge

Publisher Resources

ISBN: 9781492015499