@@ -6,7 +6,7 @@ Start and Stop MongoDB
66
77MongoDB runs as a standard program. You can start MongoDB from a command
88line by issuing the :program:`mongod` command and specifying options.
9- Fora list of options, see :doc:`/reference/mongod`. MongoDB can also run
9+ For a list of options, see :doc:`/reference/mongod`. MongoDB can also run
1010as a Windows service. For details, see
1111:ref:`tutorial-mongod-as-windows-service`. To install MongoDB, see
1212:doc:`/installation`.
@@ -37,7 +37,9 @@ Specify a Data Directory
3737~~~~~~~~~~~~~~~~~~~~~~~~
3838
3939When you specify a data directory, the directory must already exist. If
40- it does not, create it and set its permissions appropriately.
40+ it does not, create it and set its permissions appropriately for access
41+ by :program:`mongod`. For more information on permissions, see the
42+ :ref:`security operations documentation <security-operations>`.
4143
4244To specify a data directory when starting MongoDB, use the
4345:option:`--dbpath <mongod --dbpath>` option. The following command
@@ -51,7 +53,7 @@ directory:
5153Specify a TCP Port
5254~~~~~~~~~~~~~~~~~~
5355
54- If you run several :program:`mongod` processes on a single machine, you
56+ If you run multiple :program:`mongod` processes on a single machine, you
5557must assign each a different port to listen on for client connections.
5658Only one can listen on the default port of ``27017``.
5759
@@ -64,10 +66,6 @@ starts :program:`mongod` listening on port ``12345``:
6466
6567Use the default port number whenever possible, to avoid any confusion.
6668
67- If you use the :option:`--configsvr <mongod --configsvr>` or
68- :option:`--shardsvr <mongod --shardsvr>` options, those options select an
69- appropriate port number automatically.
70-
7169Run ``mongod`` as a Daemon
7270~~~~~~~~~~~~~~~~~~~~~~~~~~
7371
@@ -78,14 +76,11 @@ However, you need not create the log file. MongoDB will create the log
7876file if it does not exist.
7977
8078The following command runs :program:`mongod` as a daemon and records log
81- output to ``/var/log/mongodb.log``. The command also uses the
82- :option:`--logappend <mongod --logappend>` option to ensure that
83- :program:`mongod` appends new entries to the end of the log file rather
84- than overwriting the content when the process restarts:
79+ output to ``/var/log/mongodb.log``.
8580
8681.. code-block:: sh
8782
88- mongod --fork --logpath /var/log/mongodb.log --logappend
83+ mongod --fork --logpath /var/log/mongodb.log
8984
9085Additional Configuration Options
9186~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments