Ubuntu rabbitmq安装

1,首先去官网下载安装包:http://www.rabbitmq.com/releases/rabbitmq-server/v3.3.5/rabbitmq-server_3.3.5-1_all.deb


2,执行 下面进行安装
dpkg -i  rabbitmq-server_3.3.5-1_all.deb

看到以下输出则安装成功:

Selecting previously unselected package rabbitmq-server.
(Reading database ... 45346 files and directories currently installed.)
Unpacking rabbitmq-server (from rabbitmq-server_3.3.5-1_all.deb) ...
Setting up rabbitmq-server (3.3.5-1) ...
 * Starting message broker rabbitmq-server                                                                                                                                                         [ OK ] 
Processing triggers for man-db ...
Processing triggers for ureadahead ...
3,启动rabbitmq 
invoke-rc.d rabbitmq-server start


注意:安装必须是root用户

如果第2步骤报错:

reparing to replace rabbitmq-server 3.3.5-1 (using rabbitmq-server_3.3.5-1_all.deb) ...
Unpacking replacement rabbitmq-server ...
dpkg: dependency problems prevent configuration of rabbitmq-server:
 rabbitmq-server depends on erlang-nox (>= 1:13.b.3) | esl-erlang; however:
  Package erlang-nox is not installed.
  Package esl-erlang is not installed.
dpkg: error processing rabbitmq-server (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Errors were encountered while processing:
 rabbitmq-server

则先执行apt-get remove erlang-nox,后执行apt-get  install  erlang-nox即可

备注:invoke-rc.d rabbitmq-server stop/start/etc. 作为服务启动,rabbitmq-server start 启动的话,关闭窗口,服务会停止

你可能感兴趣的:(mq)