@@ -23,26 +23,26 @@ title: Ensure the binaries are in a directory listed in your ``PATH`` environmen
23
23
stepnum : 3
24
24
level : 4
25
25
ref : ensure-binaries-in-path
26
- pre : |
26
+ content : |
27
27
The MongoDB binaries are in the ``bin/`` directory of the tarball.
28
28
You must either:
29
29
30
- - Copy these binaries into a directory listed in your ``PATH``
31
- variable such as ``/usr/local/bin``,
32
- - Create symbolic links to each of these binaries from
33
- a directory listed in your ``PATH`` variable, or
34
- - Modify your user's ``PATH`` environment variable to include this
35
- directory.
36
- action :
37
- language : sh
38
- pre : |
39
- For example, you can add the following line to your shell's
40
- initialization script (e.g. {{bashrc}}):
41
- code : |
42
- export PATH=<mongodb-install- directory>/bin:$PATH
43
- post : |
44
- Replace ``<mongodb-install-directory>`` with the path to the extracted
45
- MongoDB archive.
46
- replacement :
47
- bashrc : " ``~/.bashrc`` "
30
+ - Copy the binaries into a directory listed in your ``PATH``
31
+ variable, such as ``/usr/local/bin`` (Update
32
+ ``/path/to/the/mongodb-directory/`` with your installation
33
+ directory as appropriate)
34
+
35
+ .. code-block:: sh
36
+
37
+ sudo cp /path/to/the/mongodb-directory/bin/* /usr/local/bin/
38
+
39
+ - Create symbolic links to the binaries from a directory listed in
40
+ your ``PATH`` variable, such as ``/usr/local/bin`` (Update
41
+ ``/path/to/the/mongodb-directory/`` with your installation
42
+ directory as appropriate):
43
+
44
+ .. code-block:: sh
45
+
46
+ sudo ln -s /path/to/the/mongodb-directory/bin/* /usr/local/bin/
47
+
48
48
...
0 commit comments