@@ -3,7 +3,9 @@ stepnum: 1
3
3
level : 4
4
4
ref : download
5
5
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.
7
9
---
8
10
title : Extract the files from the downloaded archive.
9
11
stepnum : 2
@@ -12,9 +14,7 @@ ref: extract
12
14
pre : |
13
15
14
16
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
18
18
following ``tar`` command:
19
19
20
20
.. tip::
23
23
be sure to modify the command to reflect the correct ``.tgz``
24
24
file name.
25
25
26
- .. code-block:: sh
26
+ .. code-block:: shell
27
27
28
- tar -zxvf mongodb-linux-*-{+release+}.tgz
28
+ tar -zxvf mongodb-linux-x86_64- *-{+release+}.tgz
29
29
30
30
---
31
31
title : Optional. Ensure the binaries are in a directory listed in your ``PATH`` environment variable.
@@ -34,27 +34,27 @@ level: 4
34
34
ref : ensure-binaries-in-path
35
35
content : |
36
36
37
- The MongoDB binaries are in the ``<mongodb-install-directory>/bin/ ``
37
+ The MongoDB binaries are in the ``<mongodb-install-directory>/bin``
38
38
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 :
42
42
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/
44
48
45
- export PATH=<mongodb-install-directory>/bin:$PATH
49
+ **-OR-**
46
50
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/``:
49
52
50
- Alternatively, you can:
53
+ .. code-block:: shell
51
54
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/
54
56
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 .
57
59
58
- replacement :
59
- bashrc : " ``~/.bashrc``"
60
60
...
0 commit comments