Skip to content

Commit a36068e

Browse files
ravindk89kay-kim
authored andcommitted
DOCSP-7295: Update Amazon Tarball Run Instructions
1 parent 9cfd86f commit a36068e

File tree

2 files changed

+49
-21
lines changed

2 files changed

+49
-21
lines changed

source/includes/steps-install-mongodb-on-amazon-tarball.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ stepnum: 1
33
level: 4
44
ref: download
55
pre: |
6-
Download the tarball for your system from the `MongoDB Download Center`_.
6+
Download the tarball for your system from the
7+
`MongoDB Download Center`_. Ensure you select the correct
8+
version of Amazon Linux for the host machine.
79
---
810
title: Extract the files from the downloaded archive.
911
stepnum: 2
@@ -12,9 +14,7 @@ ref: extract
1214
pre: |
1315
1416
Using an archive manager program or the ``tar`` command, extract the
15-
files.
16-
17-
For example, to extract from the terminal shell, you can use the
17+
files. For example, to extract from the terminal shell, you can use the
1818
following ``tar`` command:
1919
2020
.. tip::
@@ -23,9 +23,9 @@ pre: |
2323
be sure to modify the command to reflect the correct ``.tgz``
2424
file name.
2525
26-
.. code-block:: sh
26+
.. code-block:: shell
2727
28-
tar -zxvf mongodb-linux-*-{+release+}.tgz
28+
tar -zxvf mongodb-linux-x86_64-*-{+release+}.tgz
2929
3030
---
3131
title: Optional. Ensure the binaries are in a directory listed in your ``PATH`` environment variable.
@@ -34,27 +34,27 @@ level: 4
3434
ref: ensure-binaries-in-path
3535
content: |
3636
37-
The MongoDB binaries are in the ``<mongodb-install-directory>/bin/``
37+
The MongoDB binaries are in the ``<mongodb-install-directory>/bin``
3838
directory. To avoid having to specify the path to the MongoDB
39-
binaries, you can modify your user's ``PATH`` environment variable
40-
to include this directory. For example, you can add the following
41-
line to your shell's initialization script (e.g. {{bashrc}}):
39+
binaries, add the contents of the
40+
``<mongodb-install-directory>/bin/`` directory to a directory in the
41+
``$PATH`` such as ``/usr/bin/``. For example, you can either:
4242
43-
.. code-block:: shell
43+
- Copy the binaries into ``/usr/bin/``.
44+
45+
.. code-block:: shell
46+
47+
sudo cp <mongodb-install-directory>/bin/* /usr/bin/
4448
45-
export PATH=<mongodb-install-directory>/bin:$PATH
49+
**-OR-**
4650
47-
Replace ``<mongodb-install-directory>`` with the path to the
48-
extracted MongoDB archive.
51+
- Create symbolic links to each of these binaries to ``/usr/bin/``:
4952
50-
Alternatively, you can:
53+
.. code-block:: shell
5154
52-
- Copy these binaries into a directory listed in your ``PATH``
53-
variable such as ``/usr/local/bin``, or
55+
sudo ln -s /full/path/to/<mongodb-install-directory>/bin/* /usr/bin/
5456
55-
- Create symbolic links to each of these binaries from a directory
56-
listed in your ``PATH`` variable.
57+
Replace ``/full/path/to`` with the full path to the extracted
58+
directory contents.
5759
58-
replacement:
59-
bashrc: "``~/.bashrc``"
6060
...

source/tutorial/install-mongodb-on-amazon-tarball.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,31 @@ Install using the ``.tgz`` Tarball
6464
----------------------------------
6565

6666
.. include:: /includes/steps/install-mongodb-on-amazon-tarball.rst
67+
68+
Run MongoDB Community Edition
69+
-----------------------------
70+
71+
Production Notes
72+
Before deploying MongoDB in a production environment, consider the
73+
:doc:`/administration/production-notes` document.
74+
75+
ulimit Considerations
76+
.. include:: /includes/fact-installation-ulimit.rst
77+
78+
.. |mongod-user| replace:: ``mongodb``
79+
.. |mongod-datadir| replace:: ``/var/lib/mongodb``
80+
81+
Configuration
82+
You can configure the MongoDB instance (such as the
83+
data directory and log directory specifications) using
84+
either the command-line options or a :ref:`configuration file
85+
<conf-file>`.
86+
87+
.. note::
88+
89+
Although the following procedure uses ``sudo`` to start the MongoDB
90+
instance as well as to create the directories used by the MongoDB
91+
instance, you may choose to perform the procedure as a different
92+
user.
93+
94+
.. include:: /includes/steps/run-mongodb-on-ubuntu-tarball.rst

0 commit comments

Comments
 (0)