CentOS6.8 安裝 RabbitMQ

一、安裝erlanghtml

安裝依賴包:c++

yum install xmlto gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel wxBase wxGTK wxGTK-gl perl -y

erlang下載:web

百度雲盤:http://pan.baidu.com/s/1c1UaGpU 插件

官網地址:http://www.rabbitmq.com/releases/erlang/unix

注意:CentOS6和CentOS7是不一樣的版本,CentOS6爲el6,CentOS7爲el7server

yum install -y erlang-19.0.4-1.el6.x86_64.rpm

二、安裝RabbitMQxml

RabbitMQ下載htm

百度地址:http://pan.baidu.com/s/1o8nZdAMrabbitmq

官網地址:http://www.rabbitmq.com/install-rpm.html隊列

注意:CentOS6和CentOS7也是不一樣的版本 

wget --no-cache http://www.convirture.com/repos/definitions/rhel/6.x/convirt.repo -O /etc/yum.repos.d/convirt.repo
yum install -y socat
rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
yum install -y rabbitmq-server-3.6.8-1.el6.noarch.rpm

三、啓動RabbitMQ

 

#開啓web管理插件
rabbitmq-plugins enable rabbitmq_management
#啓動服務
service rabbitmq-server start

#添加用戶和刪除guest
rabbitmqctl add_user admin 123456abc
rabbitmqctl set_user_tags admin administrator
rabbitmqctl delete_user guest
rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"

 

 WEB訪問:http://IP:15672/

用戶名:admin      密碼:123456abc

 

清空一個隊列的數據

rabbitmqctl -p ${vhost-name} purge_queue ${queue-name}

相關文章
相關標籤/搜索