RabbitMQ的安装非常简单,由于RabbitMQ依赖于Erlang,所以需要先安装Erlang,解决依赖关系后,就可以安装RabbitMQ了。注意,在安装Erlang前,需要先安装socat
1、安装socat
yum -y install socat
2、下载RPM包
RabbitMQ:http://www.rabbitmq.com/download.html
erlang:https://www.erlang-solutions.com/resources/download.html
[[email protected] srv]# ll 总用量 23536 -rwxr-xr-x 1 root root 18579348 10月 31 23:33 erlang-19.0.4-1.el6.x86_64.rpm -rwxr-xr-x 1 root root 5520417 10月 31 23:33 rabbitmq-server-3.6.5-1.noarch.rpm
3、安装Erlang
[[email protected] srv]# rpm -ivh erlang-19.0.4-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:erlang ########################################### [100%]
4、安装RabbitMQ
[[email protected] srv]# rpm -ivh rabbitmq-server-3.6.5-1.noarch.rpm warning: rabbitmq-server-3.6.5-1.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 6026dfca: NOKEY Preparing... ########################################### [100%] 1:rabbitmq-server ########################################### [100%]
时间: 2024-12-21 23:32:36