还有两种启动方式
前台启动
代码语言:javascript复制[root@h102 ~]# rabbitmq-server
RabbitMQ 3.5.6. Copyright (C) 2007-2015 Pivotal Software, Inc.
## ## Licensed under the MPL. See http://www.rabbitmq.com/
## ##
########## Logs: /var/log/rabbitmq/rabbit@h102.log
###### ## /var/log/rabbitmq/rabbit@h102-sasl.log
##########
Starting broker... completed with 0 plugins.
如果当前窗口终结,则这个服务会退出
后台启动
代码语言:javascript复制[root@h102 ~]# rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
[root@h102 ~]# echo $?
0
[root@h102 ~]#
详细可参考 rabbitmq-server 使用方法