Installing on rpm-based Linux (CentOS, Fedora, OpenSuse, RedHat)
1. Installing Erlang
RPM-IVH http://www.rabbitmq.com/releases/erlang/erlang-17.4-1.el6.x86_64.rpm
2, Installation RABBITMQ
RPM--import https://www.rabbitmq.com/rabbitmq-signing-key-public.ascyum install http: // www.rabbitmq.com/releases/rabbitmq-server/v3.5.4/rabbitmq-server-3.5.4- 1. noarch.rpm-y
3. Modify the Configuration
-Rrabbitmq:rabbitmq/data//usr/lib/rabbitmq/bin/rabbitmq-defaults --/usr/lib/rabbitmq/bin /rabbitmq-env Modifying port numbers
4. Start RABBITMQ
Chkconfig rabbitmq-serveron/sbin/service rabbitmq-server stop/start or service RABBITMQ-server start /stop
5, install the monitoring plug-in
Rabbitmq-plugins Enable Rabbitmq_management--Install monitoring plugin
6. Set User
rabbitmqctl Add_user User1 * * * *-- add user user1 and password rabbitmqctl set_permissions -p/user1 .* " " .* " " .* "--set User1 user/ below permissions Rabbitmqctl List_user _permissions user1 ---- set user1 for administrators Rabbitmqctl delete_user guest -- Delete the default Guest user Rabbitmqctl list_users -- Show all users Rabbitmqctl add_vhost vhost1 --Add a virtual host Vhost1, a virtual host is just a namespace, so you can use multiple users together with a virtual host
Reference documents:
Http://www.rabbitmq.com/man/rabbitmqctl.1.man.html#User%20management--User management
Http://www.cnblogs.com/daizhj/archive/2010/10/21/1857374.html--Basic settings
http://blog.163.com/[email protected]/blog/static/16476102320107173226920/--the role of virtual hosting
http://www.ttlsa.com/linux/install-rabbitmq-on-linux/--Configuration file
Install RABBITMQ under Linux