Skip to content

Commit 62b4ae2

Browse files
committed
DOCSP-7259: update install step #3 for path
1 parent a36068e commit 62b4ae2

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

source/includes/steps-install-mongodb-on-linux.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@ title: Ensure the binaries are in a directory listed in your ``PATH`` environmen
2323
stepnum: 3
2424
level: 4
2525
ref: ensure-binaries-in-path
26-
pre: |
26+
content: |
2727
The MongoDB binaries are in the ``bin/`` directory of the tarball.
2828
You must either:
2929
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+
4848
...

0 commit comments

Comments
 (0)