Databases Reference
In-Depth Information
Using the Admin Interface
By default, starting
mongod
also starts up a (very) basic HTTP server that listens on a
port 1,000 higher than the native driver port. This server provides an HTTP interface
that can be used to see basic information about the MongoDB server. All of the infor-
mation presented can also be seen through the shell, but the HTTP interface gives a
nice, easy-to-read overview.
To see the admin interface, start the database and go to
http://localhost:28017
in a web
browser. (Use 1,000 higher than the port you specified, if you used the
--port
option
when starting MongoDB.) You'll see a page that looks like
Figure 8-1
.
Figure 8-1. The admin interface
As you can see, this interface gives access to assertion, locking, indexing, and replication
information about the MongoDB server. It also gives some more general information,
like the log preamble and access to a list of available database commands.
To make full use of the admin interface (e.g., to access the command list), you'll need
to turn on REST support with
--rest
. You can also turn off the admin interface alto-
gether by starting
mongod
with the
--nohttpinterface
option.