Skip to content

DOCS-3599 Add Enterprise Debian installation docs #1836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions source/includes/steps-install-mongodb-enterprise-on-debian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
stepnum: 1
source:
file: steps-install-mongodb-on-debian.yaml
ref: import-key
---
title: Create a ``/etc/apt/sources.list.d/mongodb-enterprise.list`` file for MongoDB.
stepnum: 2
ref: sources-list
action:
- pre: |
Create the list file using the following command:
language: sh
code: |
echo 'deb http://repo.mongodb.com/apt/debian wheezy/mongodb-enterprise/stable main' | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
- pre: |
If you'd like to install MongoDB Enterprise packages from a
particular :ref:`release series <release-version-numbers>`, such as
2.6, you can specify the release series in the repository
configuration. For example, to restrict your system to the 2.6
release series, add the following repository:
language: sh
code: |
echo 'deb http://repo.mongodb.com/apt/debian precise/mongodb-enterprise/2.6 main' | sudo tee /etc/apt/sources.list.d/mongodb-enterprise-2.6.list
---
stepnum: 3
source:
file: steps-install-mongodb-on-debian.yaml
ref: reload
---
title: Install the MongoDB Enterprise packages.
stepnum: 4
ref: install
pre: |
When you install the packages, you choose whether to install the current
release or a previous one. This step provides instructions for both.
action:
- pre: |
To install the latest stable version of MongoDB Enterprise, issue
the following command:
language: sh
code: |
sudo apt-get install mongodb-enterprise
- pre: |
To install a specific release of MongoDB Enterprise, specify
each component package individually and append the version number to
the package name, as in the following example that installs the
`2.6.1`` release of MongoDB Enterprise:
language: sh
code: |
apt-get install mongodb-enterprise=2.6.1 mongodb-enterprise-server=2.6.1 mongodb-enterprise-shell=2.6.1 mongodb-enterprise-mongos=2.6.1 mongodb-enterprise-tools=2.6.1
- pre: |
You can specify any available version of MongoDB Enterprise. However
``apt-get`` will upgrade the packages when a newer version becomes
available. To prevent unintended upgrades, pin the package. To pin
the version of MongoDB Enterprise at the currently installed
version, issue the following command sequence:
language: sh
code: |
echo "mongodb-enterprise hold" | sudo dpkg --set-selections
echo "mongodb-enterprise-server hold" | sudo dpkg --set-selections
echo "mongodb-enterprise-shell hold" | sudo dpkg --set-selections
echo "mongodb-enterprise-mongos hold" | sudo dpkg --set-selections
echo "mongodb-enterprise-tools hold" | sudo dpkg --set-selections
...
4 changes: 4 additions & 0 deletions source/includes/toc-installation-enterprise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ file: /tutorial/install-mongodb-enterprise-on-ubuntu
name: Install MongoDB Enterprise on Ubuntu
description: "Install the MongoDB Enterprise build and required dependencies on Ubuntu Linux Systems using packages."
---
file: /tutorial/install-mongodb-enterprise-on-debian
name: Install MongoDB Enterprise on Debian
description: "Install the MongoDB Enterprise build and required dependencies on Debian Linux Systems using packages."
---
file: /tutorial/install-mongodb-enterprise-on-suse
name: Install MongoDB Enterprise on SUSE
description: "Install the MongoDB Enterprise build and required dependencies on SUSE Enterprise Linux."
Expand Down
2 changes: 2 additions & 0 deletions source/includes/toc-spec-installation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ files:
level: 2
- file: /tutorial/install-mongodb-enterprise-on-ubuntu
level: 2
- file: /tutorial/install-mongodb-enterprise-on-debian
level: 2
- file: /tutorial/install-mongodb-enterprise-on-suse
level: 2
- file: /tutorial/install-mongodb-enterprise-on-amazon
Expand Down
29 changes: 29 additions & 0 deletions source/tutorial/install-mongodb-enterprise-on-debian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
====================================
Install MongoDB Enterprise on Debian
====================================

.. default-domain:: mongodb

Overview
--------

Use this tutorial to install MongoDB Enterprise on Debian Linux systems.
The tutorial uses ``.deb`` packages to install.

.. include:: /includes/list-mongodb-enterprise-packages.rst

Install MongoDB Enterprise
--------------------------

.. include:: /includes/steps/install-mongodb-enterprise-on-debian.rst

Run MongoDB Enterprise
----------------------

The MongoDB Enterprise instance stores its data files in ``/var/lib/mongo``
and its log files in ``/var/log/mongo``, and runs using the ``mongod``
user account. If you change the user that runs the MongoDB process, you
**must** modify the access control rights to the ``/var/lib/mongo`` and
``/var/log/mongo`` directories.

.. include:: /includes/steps/run-mongodb-on-debian.rst