歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> 學習Linux

CentOS搭建RabbitMQ

CentOS搭建RabbitMQ


CentOS搭建RabbitMQ


安裝 Erlang

1)Enable EPEL on your machine

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmyum install foo

2)EnableErlang repository

wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo  

3)Install Erlang

yum install erlang  

安裝 rabbitmq-server

wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpmrpm -ivh rabbitmq-server-3.5.0-1.noarch.rpm 

安裝 RabbitMQWeb管理插件

rabbitmq-plugins enable rabbitmq_management  service rabbitmq-server restart  

http://127.0.0.1:1567255672也可以,直接跳轉到下列web管理 用戶名密碼 guest

啟動RabbitMQ Server

/etc/init.d/rabbitmq-server start  或  service rabbitmq-service start 

無法登陸解決辦法

vim /etc/rabbitmq/rabbitmq.config寫入信息,並保存[{rabbit, [{loopback_users, []}]}].

注意,最後那個點要加上去

http://xxxxxx/Linuxjc/1134247.html TechArticle

Copyright © Linux教程網 All Rights Reserved