【原创】rabbitmq-server用户手册(翻译)-阿里云开发者社区

开发者社区> 微服务> 正文
登录阅读全文

【原创】rabbitmq-server用户手册(翻译)

简介:

      为了方便工作中使用,周末抽空对rabbitmq-server用户手册进行了翻译,鉴于自己水平有限,翻译中难免有纰漏产生,如果疑问,欢迎指出探讨。

官方原文:http://www.rabbitmq.com/man/rabbitmq-server.1.man.html

================= 我是分割线 ==================

通过 http://www.rabbitmq.com/manpages.html 可知 RabbitMQ 有5个 General Command :

1. rabbitmqctl
2. rabbitmq-plugins
3. rabbitmq-server
4. rabbitmq-service
5. rabbitmq-echopid

若要对 server 进行高级配置,则需要参考 administrator's guide(http://www.rabbitmq.com/admin-guide.html


命令名
rabbitmq-server — 启动 RabbitMQ AMQP server

概要
rabbitmq-server [-detached]

描述
RabbitMQ is an implementation of AMQP, the emerging standard for high performance enterprise messaging. The RabbitMQ server is a robust and scalable implementation of an AMQP broker.(翻译略)

前台运行 rabbitmq-server 将会显示一个兔子标志,以及按照启动序列给出的加载过程的输出,并以“broker running”作为结尾打印,表明 RabbitMQ broker 已经成功的启动了。如果想要停掉当前的 server ,只需要终止进程或者使用 rabbitmqctl 命令进行操作。

环境变量

RABBITMQ_MNESIA_BASE
默认指向 /var/lib/rabbitmq/mnesia ,更改该环境变量可以使您存放 Mnesia 数据库文件到希望的位置。

RABBITMQ_LOG_BASE
默认指向 /var/log/rabbitmq ,server 产生的 log 文件将存放于该目录。

RABBITMQ_NODENAME
默认指向 rabbit,当你打算在单台物理机上运行多于 1 个 node 时该环境变量有用 - RABBITMQ_NODENAME 在每一个 erlang-node-and-machine 搭配中应该是唯一的。 参见 clustering on a single machine 中的具体说明。

RABBITMQ_NODE_IP_ADDRESS
默认情况 RabbitMQ 将绑定到全部 interface (IPv4 和 IPv6,如果存在的话) 上。通过设置该环境变量可以让您只绑定到一个网络 interface 或者 address family 上。

RABBITMQ_NODE_PORT
默认为 5672。

选项
-detached
后台启动 server 进程

For example:

1
# rabbitmq-server -detached
运行 RabbitMQ AMQP server 于后台。


================= 我是分割线 ==================

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
E:\Program Files\RabbitMQ Server\rabbitmq_server-2.8.7\sbin>rabbitmq-server.bat
Activating RabbitMQ plugins ...
0 plugins activated:
 
 
+---+   +---+
|   |   |   |
|   |   |   |
|   |   |   |
|   +---+   +-------+
|                   |
| RabbitMQ  +---+   |
|           |   |   |
|   v2.8.7  +---+   |
|                   |
+-------------------+
AMQP 0-9-1 / 0-9 / 0-8
Copyright (C) 2007-2012 VMware, Inc.
Licensed under the MPL.  See http://www.rabbitmq.com/
 
node           : rabbit@SUNFEI
app descriptor : e:/Program Files/RabbitMQ Server/rabbitmq_server-2.8.7/sbin/../ebin/rabbit.app
home dir       : C:\Documents and Settings\sunfei
config file(s) : (none)
cookie hash    : SjAetukIbWXBgKcToETEYQ==
log            : C:/Documents and Settings/sunfei/Application Data/RabbitMQ/log/rabbit@SUNFEI.log
sasl log       : C:/Documents and Settings/sunfei/Application Data/RabbitMQ/log/rabbit@SUNFEI-sasl.log
database dir   : c:/Documents and Settings/sunfei/Application Data/RabbitMQ/db/rabbit@SUNFEI-mnesia
erlang version : 5.9.2
 
-- rabbit boot start
starting file handle cache server                                     ...done
starting worker pool                                                  ...done
starting database                                                     ...done
starting database sync                                                ...done
starting codec correctness check                                      ...done
-- external infrastructure ready
starting plugin registry                                              ...done
starting auth mechanism cr-demo                                       ...done
starting auth mechanism amqplain                                      ...done
starting auth mechanism plain                                         ...done
starting statistics event manager                                     ...done
starting logging server                                               ...done
starting exchange type direct                                         ...done
starting exchange type fanout                                         ...done
starting exchange type headers                                        ...done
starting exchange type topic                                          ...done
-- kernel ready
starting alarm handler                                                ...done
starting node monitor                                                 ...done
starting cluster delegate                                             ...done
starting guid generator                                               ...done
starting memory monitor                                               ...done
-- core initialized
starting empty DB check                                               ...done
starting exchange, queue and binding recovery                         ...done
starting mirror queue slave sup                                       ...done
starting adding mirrors to queues                                     ...done
-- message delivery logic ready
starting error log relay                                              ...done
starting networking                                                   ...done
starting direct client                                                ...done
starting notify cluster nodes                                         ...done
 
broker running


版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

分享:
微服务
使用钉钉扫一扫加入圈子
+ 订阅

构建可靠、高效、易扩展的技术基石

其他文章
最新文章
相关文章