cd /usr/local/src/ mkdir rabbitmq cd rabbitmq wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm rpm -Uvh erlang-solutions-1.0-1.noarch.rpm rpm --import http://packages.erlang-solutions.com/rpm/erlang_solutions.asc yum install erlang
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_11_milestone4/rabbitmq-server-3.6.10.904-1.el6.noarch.rpm yum install rabbitmq-server-3.6.10.904-1.el6.noarch.rpm
cp /usr/share/doc/rabbitmq-server-3.6.10.904/rabbitmq.config.example /etc/rabbitmq/ mv rabbitmq.config.example rabbitmq.config
vi /etc/rabbitmq/rabbitmq.config
偷懒盗一下图,来源见水印
rabbitmq-plugins enable rabbitmq_management
guest
guest
但是只能在localhost下进行登录需要其他用户要自己创建并授权才行
添加用户
rabbitmqctl add_user admin 123456
设置权限
rabbitmqctl set_user_tags admin administrator
cd /var/log/rabbitmq/
service rabbitmq-server start
service rabbitmq-server stop
service rabbitmq-server restart
原文:http://www.cnblogs.com/beliveli/p/7241349.html