Wonderjar's Blog

修改RabbitMQ配置

2018-08-27

看Rabbitmq配置的路径,可能是 /etc/rabbitmq
如果没有rabbitmq.config,新建文件
下面的例子就是修改了rabbitmq和rabbimq admin web ui的端口

rabbitmq.config

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
%% -*- mode: erlang -*-
%% ----------------------------------------------------------------------------
%% RabbitMQ Sample Configuration File.
%%
%% Related doc guide: http://www.rabbitmq.com/configure.html. See
%% http://rabbitmq.com/documentation.html for documentation ToC.
%% ----------------------------------------------------------------------------
[
{rabbit, [
{tcp_listeners, [18181]}
]},

{kernel,
[
]},


{rabbitmq_management,
[
{listener, [{port, 18182}
]}
]},

{rabbitmq_shovel,
[{shovels,
[
]}

]},

{rabbitmq_stomp,
[
]},


{rabbitmq_mqtt,
[
]},

{rabbitmq_amqp1_0,
[
]},

{rabbitmq_auth_backend_ldap,
[
]},
{lager, [
]}
].

enabled_plugins

1
[rabbitmq_management].

Tags: Server