1. 程式人生 > 其它 >訊息佇列RabbitMQ-安裝

訊息佇列RabbitMQ-安裝

 操作示例的安裝版本:3.6.5  

一、準備

yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc tz  

二、下載和安裝

wget www.rabbitmq.com/releases/erlang/erlang-18.3-1.el7.centos.x86_64.rpm wget http://repo.iotti.biz/CentOS/7/x86_64/socat-1.7.3.2-5.el7.lux.x86_64.rpm wget www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm   安裝以上3個 npm -ivh ... rpm -ivh erlang-18.3-1.el7.centos.x86_64.rpm rpm -ivh socat-1.7.3.2-5.el7.lux.x86_64.rpm rpm -ivh rabbitmq-server-3.6.5-1.noarch.rpm  

三、配置和啟動

配置檔案: vim /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit.app 比如修改密碼、配置等等, 例如:loopback_users 中的 <<"guest">>,只保留guest 服務啟動和停止: 啟動 rabbitmq-server start & 停止 rabbitmqctl app_stop   啟動時若出現錯誤:epmd error for host aubin vi /etc/rabbitmq/rabbitmq-env.conf檔案裡面新增這一:NODENAME=rabbit@localhost
,儲存  

四、安裝管理外掛

管理外掛:rabbitmq-plugins enable rabbitmq_management 訪問地址:http://192.168.1.61:15672/