forked from rabbitmq/rabbitmq-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-rpm.xml
270 lines (239 loc) · 11.7 KB
/
install-rpm.xml
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?xml-stylesheet type="text/xml" href="page.xsl"?>
<!DOCTYPE html [
<!ENTITY % entities SYSTEM "rabbit.ent" >
%entities;
]>
<!--
Copyright (c) 2007-2016 Pivotal Software, Inc.
All rights reserved. This program and the accompanying materials
are made available under the terms of the under the Apache License,
Version 2.0 (the "License”); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:doc="http://www.rabbitmq.com/namespaces/ad-hoc/doc"
xmlns:r="http://www.rabbitmq.com/namespaces/ad-hoc/conformance"
xmlns:x="http://www.rabbitmq.com/2011/extensions"
xmlns:xi="http://www.w3.org/2003/XInclude">
<head>
<title>Installing on RPM-based Linux (RHEL, CentOS, Fedora, openSUSE)</title>
</head>
<body>
<doc:section name="rpm-packages">
<doc:heading>Download the Server</doc:heading>
<r:downloads signature="yes">
<r:download downloadfile="rabbitmq-server-&version-server;-&serverRPMMinorVersion;.el6.noarch.rpm"
downloadpath="&dir-server;">
RPM for RHEL Linux 6.x, CentOS 6.x, Fedora prior to 19 (from rabbitmq.com)
</r:download>
<r:download downloadfile="rabbitmq-server-&version-server;-&serverRPMMinorVersion;.el7.noarch.rpm"
downloadpath="&dir-server;">
RPM for RHEL 7.x, CentOS 7.x, Fedora 19+ (supports systemd, from rabbitmq.com)
</r:download>
<r:download downloadfile="rabbitmq-server-&version-server;-&serverRPMMinorVersion;.suse.noarch.rpm"
downloadpath="&dir-server;">
RPM for openSUSE Linux (from rabbitmq.com)
</r:download>
<r:download downloadfile="rabbitmq-server-&version-server;-&serverRPMMinorVersion;.el6.noarch.rpm"
absolute="yes" url="https://github.com/rabbitmq/rabbitmq-server/releases/download/&version-server-tag;/rabbitmq-server-&version-server;-&serverRPMMinorVersion;.el6.noarch.rpm">
RPM for RHEL Linux 6.x, CentOS 6.x, Fedora prior to 19 (from github.com)
</r:download>
<r:download downloadfile="rabbitmq-server-&version-server;-&serverRPMMinorVersion;.el7.noarch.rpm"
absolute="yes" url="https://github.com/rabbitmq/rabbitmq-server/releases/download/&version-server-tag;/rabbitmq-server-&version-server;-&serverRPMMinorVersion;.el7.noarch.rpm">
RPM for RHEL Linux 7.x, CentOS 7.x, Fedora 19+ (supports systemd, from github.com)
</r:download>
</r:downloads>
</doc:section>
<doc:section name="overview">
<doc:heading>Overview</doc:heading>
<p>
<code>rabbitmq-server</code> is included in Fedora. However,
the versions included are often quite old. You will probably
get better results installing the .rpm from our website. Check
the <a href="https://admin.fedoraproject.org/updates/rabbitmq-server">Fedora
package</a> details for which version of the server is
available for which versions of the distribution.
</p>
<p>
We also upload our RPM packages to <a href="https://packagecloud.io/rabbitmq/rabbitmq-server/">PackageCloud</a>
and <a href="https://bintray.com/rabbitmq/rabbitmq-server-rpm">Bintray</a>.
</p>
</doc:section>
<doc:section name="supported-rpm-distributions">
<doc:heading>Supported Distributions</doc:heading>
<p>
Below is a list of supported RPM-based distributions as of RabbitMQ 3.6.3:
<ul>
<li>CentOS 6.x and 7.x (note: there are two separate RPM packages for 6.x and 7.x)</li>
<li>RedHat Enterprise Linux 6.x and 7.x (same as for CentOS, there are two separate packages)</li>
<li>Fedora 23 through 25 (use the RHEL 7.x package)</li>
</ul>
The packages may work on other RPM-based distributions
if dependencies (see below) are satisfied (e.g. using the
Wheezy backports repository) but their testing and support
is done on a best effort basis.
</p>
</doc:section>
<doc:section name="install-erlang">
<doc:heading>Install Erlang</doc:heading>
<p>
Before installing RabbitMQ, you must install a <a href="/which-erlang.html">supported version</a> of Erlang/OTP. We strongly
recommend using a packaged version. There are three suggested sources
for Erlang packages:
</p>
<ul>
<li>
We produce <a href="https://github.com/rabbitmq/erlang-rpm">a package</a> stripped
down to only provide those components needed to run
RabbitMQ. <b>It may not be as up to date as Erlang Solutions'
packages</b>, but it might be easiest to use if installing
Erlang's dependencies is proving difficult.
</li>
<li>
<a href="https://www.erlang-solutions.com/resources/download.html">Erlang
Solutions</a> produces packages that are usually up to
date. They produce two sets of packages - ones which are split
up and are more convenient to use if you can add a yum
repository, and a monolithic package which might be easier if
you have to download manually.
</li>
<li>
<a href="http://fedoraproject.org/wiki/EPEL">EPEL</a> ("Extra Packages
for Enterprise Linux"); part of the Red Hat / Fedora organisation,
provides many additional packages, including Erlang. These are the
most official packages, and are split into many small packages, but
are not always up to date.
</li>
</ul>
<doc:subsection name="install-zero-dependency-rpm">
<doc:heading>Install zero-dependency Erlang from RabbitMQ</doc:heading>
<ol class="plain">
<li>
Download and install the <a href="https://github.com/rabbitmq/erlang-rpm">zero dependency Erlang RPM package for running RabbitMQ</a>. As the name suggests, the package strips off some Erlang modules and dependencies
that are not essential for running RabbitMQ.
</li>
</ol>
<h3>Install Erlang from the EPEL repository <i>or</i></h3>
<ol class="plain">
<li>
Follow the steps in the <a href="http://fedoraproject.org/wiki/EPEL/FAQ#howtouse">EPEL FAQ</a> to enable EPEL on your machine.
</li>
<li>
Issue the following command as 'root':
<pre>yum install erlang</pre>
</li>
</ol>
</doc:subsection>
<doc:subsection name="install-from-esl-repository">
<doc:heading>Install Erlang from the Erlang Solutions repository <i>or</i></doc:heading>
<ol class="plain">
<li>
Follow the instructions under "Installation using repository"
at <a href="https://www.erlang-solutions.com/resources/download.html">Erlang Solutions</a>.
</li>
</ol>
</doc:subsection>
<doc:subsection name="install-monolithic-from-esl-repository">
<doc:heading>Install monolithic Erlang from Erlang Solutions <i>or</i></doc:heading>
<ol class="plain">
<li>
Download and install the appropriate <code>esl-erlang</code> RPM
from <a href="https://www.erlang-solutions.com/resources/download.html">Erlang Solutions</a>.
</li>
<li>
Download and install
the <a href="https://github.com/jasonmcintosh/esl-erlang-compat">esl-erlang-compat</a>
RPM
(<a href="https://github.com/jasonmcintosh/esl-erlang-compat/releases/download/1.1.1/esl-erlang-compat-18.1-1.noarch.rpm">direct
download</a>) produced by <a href="https://github.com/jasonmcintosh/">Jason
McIntosh</a>.
<p>
This is needed since Erlang Solutions' monolithic packages provide
"esl-erlang"; this package just requires "esl-erlang" and provides
"erlang".
</p>
</li>
</ol>
</doc:subsection>
</doc:section>
<doc:section name="install-rabbitmq">
<doc:heading>Install RabbitMQ Server</doc:heading>
<doc:subsection name="with-rpm">
<doc:heading>With rpm and Downloaded RPM</doc:heading>
<p>
After downloading the server package, issue the following command as
'root':
</p>
<pre>rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
yum install rabbitmq-server-&version-server;-&serverRPMMinorVersion;.noarch.rpm</pre>
<p>Our public signing key is also <a href="https://bintray.com/user/downloadSubjectPublicKey?username=rabbitmq">available from Bintray</a>.</p>
</doc:subsection>
<doc:subsection name="from-package-cloud">
<doc:heading>Using PackageCloud RPM Repository</doc:heading>
<p>
PackageCloud installs packages via HTTPS and signs them using their GPG key.
There are multiple ways to install:
<ul>
<li>Provided installation scripts</li>
<li>Using PackageCloud Chef cookbook</li>
<li>Using PackageCloud Puppet module</li>
<li>Manually</li>
</ul>
See <a href="https://packagecloud.io/rabbitmq/rabbitmq-server/install">PackageCloud RabbitMQ repository instructions</a>.
</p>
</doc:subsection>
</doc:section>
<doc:section name="run-rabbitmq">
<doc:heading>Run RabbitMQ Server</doc:heading>
<dl class="instructions">
<dt>Customise RabbitMQ Environment Variables</dt>
<dd>
<p>
The server should start using defaults. You can
<a href="configure.html#customise-general-unix-environment">customise the RabbitMQ environment</a>.
Also see how to <a href="configure.html#configuration-file">configure components</a>.
</p>
</dd>
<dt>Start the Server</dt>
<dd>
<p>
The server is not started as a daemon by default when the
RabbitMQ server package is installed. To start the daemon by default
when the system boots, as an administrator run
<code>chkconfig rabbitmq-server on</code>.
</p>
<p>
As an administrator, start and stop the
server as usual using
<code>/sbin/service rabbitmq-server <i>stop/start/etc</i></code>.
</p>
<p>
<em>Note: </em>The server is set up to run as system user
<code>rabbitmq</code>.
If you change the location of the Mnesia database or the logs,
you must ensure the files are owned by this user
(and also update the environment variables).
</p>
</dd>
</dl>
</doc:section>
<xi:include href="install-selinux-ports.xml.inc"/>
<xi:include href="install-guest-localhost.xml.inc"/>
<doc:section name="kernel-resource-limits">
<doc:heading>Controlling System Limits on Linux</doc:heading>
<xi:include href="max-open-files-limit-intro.xml.inc" />
<xi:include href="max-open-files-limit-different-limits.xml.inc" />
<xi:include href="max-open-files-limit-options-other-linux.xml.inc" />
<xi:include href="max-open-files-limit-going-further-linux.xml.inc" />
<xi:include href="max-open-files-limit-verifying-linux.xml.inc" />
<xi:include href="max-open-files-limit-tools.xml.inc" />
</doc:section>
<xi:include href="install-unix-manage.xml.inc"/>
</body>
</html>