/
install-mongodb-enterprise-on-red-hat.txt
181 lines (114 loc) · 4.52 KB
/
install-mongodb-enterprise-on-red-hat.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
.. _install-mdb-enterprise-redhat-centos:
.. meta::
:description: Install MongoDB Community Edition on Red Hat, CentOS, Oracle, Rocky, or AlmaLinux using the yum package manager.
=======================================================
Install MongoDB Enterprise Edition on Red Hat or CentOS
=======================================================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: twocols
.. |arrow| unicode:: U+27A4
.. |edition| replace:: Enterprise
.. |package-name| replace:: ``{+package-name-enterprise+}``
.. |distro-name| replace:: Red Hat
.. |package-manager| replace:: ``yum``
.. |executable-name| replace:: ``mongod``
.. include:: includes/rc-available.rst
Overview
--------
Use this tutorial to install MongoDB {+version+} |edition| Edition on
Red Hat Enterprise Linux, CentOS Linux, or Oracle Linux [#oracle-linux]_
using the |package-manager| package manager.
:products:`MongoDB Enterprise Edition</mongodb-enterprise-advanced?tck=docs_server>`
is available on select platforms and contains support for several
features related to security and monitoring.
MongoDB Version
~~~~~~~~~~~~~~~
.. include:: /includes/fact-install-past-mongodb.rst
Considerations
--------------
Platform Support
~~~~~~~~~~~~~~~~
.. include:: /includes/fact-platform-support-enterprise-red-hat.rst
Production Notes
~~~~~~~~~~~~~~~~
.. include:: /includes/fact-see-production-notes.rst
.. _install-enterprise-redhat-pkg:
Install MongoDB Enterprise Edition
----------------------------------
Follow these steps to install MongoDB |edition| Edition using the
|package-manager| package manager.
.. include:: /includes/steps/install-mongodb-enterprise-on-red-hat.rst
.. note::
.. include:: /includes/install-mongodb-yum-commands.rst
Run MongoDB Enterprise Edition
------------------------------
ulimit
~~~~~~
.. include:: /includes/fact-installation-ulimit.rst
Directory Paths
~~~~~~~~~~~~~~~
To Use Default Directories
``````````````````````````
By default, MongoDB runs using the |mongod-user| user account and
uses the following default directories:
- |mongod-datadir| (the data directory)
- ``/var/log/mongodb`` (the log directory)
The package manager creates the default directories during
installation. The owner and group name are |mongod-user|.
To Use Non-Default Directories
``````````````````````````````
To use a data directory and/or log directory other than the default
directories:
#. Create the new directory or directories.
#. Edit the configuration file ``/etc/mongod.conf`` and modify the
following fields accordingly:
- :setting:`storage.dbPath` to specify a new data directory path (e.g. ``/some/data/directory``)
- :setting:`systemLog.path` to specify a new log file path (e.g. ``/some/log/directory/mongod.log``)
#. Ensure that the user running MongoDB has access to the directory or
directories:
.. code-block:: bash
sudo chown -R mongod:mongod <directory>
If you change the user that runs the MongoDB process, you **must**
give the new user access to these directories.
#. Configure SELinux if enforced. See
:ref:`install-enterprise-rhel-configure-selinux`.
.. _install-enterprise-selinux-data-directory:
.. _install-enterprise-rhel-configure-selinux:
Configure SELinux
~~~~~~~~~~~~~~~~~
.. include:: /includes/fact-selinux-redhat-with-policy.rst
.. |mongod-user| replace:: ``mongod``
.. |mongod-datadir| replace:: ``/var/lib/mongo``
Procedure
~~~~~~~~~
Follow these steps to run MongoDB |edition| Edition on your system.
These instructions assume that you are using the default settings.
**Init System**
.. include:: /includes/fact-systemd-vs-initd.rst
.. tabs::
.. tab:: systemd (systemctl)
:tabid: systemd-systemctl
.. include:: /includes/steps/run-mongodb-on-a-linux-distribution-systemd.rst
.. tab:: System V Init (service)
:tabid: systemvinit-service
.. include:: /includes/steps/run-mongodb-on-a-linux-distribution.rst
Uninstall MongoDB
-----------------
.. include:: /includes/fact-uninstall.rst
.. include:: /includes/steps/uninstall-mongodb-enterprise-on-redhat.rst
Additional Information
----------------------
Localhost Binding by Default
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. include:: /includes/fact-installation-bind-ip-default-in-config.rst
MongoDB Enterprise Edition Packages
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. include:: /includes/list-mongodb-enterprise-packages.rst
.. toctree::
:hidden:
:titlesonly:
Install using .tgz Tarball </tutorial/install-mongodb-enterprise-on-red-hat-tarball>