为了方便工作中使用,周末抽空对rabbitmq-server用户手册进行了翻译,鉴于自己水平有限,翻译中难免有纰漏产生,如果疑问,欢迎指出探讨。
官方原文:
================= 我是分割线 ==================
通过 可知 RabbitMQ 有5个 General Command :
1. rabbitmqctl
2. rabbitmq-plugins 3. rabbitmq-server 4. rabbitmq-service 5. rabbitmq-echopid若要对 server 进行高级配置,则需要参考 administrator's guide()
命令名
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:# rabbitmq-server -detached运行 RabbitMQ AMQP server 于后台。
================= 我是分割线 ==================
E:\Program Files\RabbitMQ Server\rabbitmq_server-2.8.7\sbin>rabbitmq-server.batActivating RabbitMQ plugins ...0 plugins activated:+---+ +---+| | | || | | || | | || +---+ +-------+| || RabbitMQ +---+ || | | || v2.8.7 +---+ || |+-------------------+AMQP 0-9-1 / 0-9 / 0-8Copyright (C) 2007-2012 VMware, Inc.Licensed under the MPL. See http://www.rabbitmq.com/node : rabbit@SUNFEIapp descriptor : e:/Program Files/RabbitMQ Server/rabbitmq_server-2.8.7/sbin/../ebin/rabbit.apphome dir : C:\Documents and Settings\sunfeiconfig file(s) : (none)cookie hash : SjAetukIbWXBgKcToETEYQ==log : C:/Documents and Settings/sunfei/Application Data/RabbitMQ/log/rabbit@SUNFEI.logsasl log : C:/Documents and Settings/sunfei/Application Data/RabbitMQ/log/rabbit@SUNFEI-sasl.logdatabase dir : c:/Documents and Settings/sunfei/Application Data/RabbitMQ/db/rabbit@SUNFEI-mnesiaerlang version : 5.9.2-- rabbit boot startstarting file handle cache server ...donestarting worker pool ...donestarting database ...donestarting database sync ...donestarting codec correctness check ...done-- external infrastructure readystarting plugin registry ...donestarting auth mechanism cr-demo ...donestarting auth mechanism amqplain ...donestarting auth mechanism plain ...donestarting statistics event manager ...donestarting logging server ...donestarting exchange type direct ...donestarting exchange type fanout ...donestarting exchange type headers ...donestarting exchange type topic ...done-- kernel readystarting alarm handler ...donestarting node monitor ...donestarting cluster delegate ...donestarting guid generator ...donestarting memory monitor ...done-- core initializedstarting empty DB check ...donestarting exchange, queue and binding recovery ...donestarting mirror queue slave sup ...donestarting adding mirrors to queues ...done-- message delivery logic readystarting error log relay ...donestarting networking ...donestarting direct client ...donestarting notify cluster nodes ...donebroker running