RabbitMQ installation process and RabbitMQ Installation Process
Original article reprinted please indicate the source: @ cosi, http://zeeman.cnblogs.com
Some installation tutorials on the Internet are cumbersome. In fact, you only need two RPM packages to complete the deployment of one instance in a few minutes.
Preparation
Download Erlang package: http://www.rabbitmq.com/releases/erlang/
Download RabbitMQ: http://www.rabbitmq.com/install-rpm.html
Import the signature. The signature is used to verify that the rpm has been modified. It can only be installed with a warning.
Rpm -- import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
Install
Rpm-ivh erlang-17.4-1.el6.x86_64.rpm
Rpm-ivh rabbitmq-server-3.5.1-1.noarch.rpm
Self-starting
Chkconfig rabbitmq-server on
Create a data directory. Attach the disk to the data directory.
Mkdir/opt/kit/rabbitmq/data/db-p
Mkdir/opt/kit/rabbitmq/data/logs-p
Chmod 777/opt/kit/rabbitmq/data/logs
Chmod 777/opt/kit/rabbitmq/data/db
Configure and use our data directory for easy maintenance
Vi/etc/rabbitmq/rabbitmq-env.conf
Modify the following content
RABBITMQ_MNESIA_BASE =/opt/kit/rabbitmq/data/db
RABBITMQ_LOG_BASE =/opt/kit/rabbitmq/data/logs
Allow the guest to log on from another machine. By default, the management website does not allow the guest to log on remotely.
Vi/etc/rabbitmq. config
The filling content is (note the points at the end of the content ):
[{Rabbit, [{loopback_users, []}].
Number of connections of the tuning System:
Vi/etc/security/limits. conf
Input
Rabbitmq hard nofile 65535
Rabbitmq soft nofile 65535
Start the service
Service rabbitmq-server start
Open Management plug-in
Rabbitmq-plugins enable rabbitmq_management
Now you can log on to the website. A single node is successfully installed.
Logon address: http: // yourserver: 15672/
Username: guest
Password: guest