CentOS - RabbitHQ Install

RabbitMQ packages are distributed both with CentOS / RHEL & Ubuntu / Debian based systems. 
However, they are - like with most applications - outdated. 
The recommended way to get RabbitMQ on your system is therefore to download the package online and manually.

update server
yum -y update

install erlang
# Add and enable relevant application repositories:# Note: We are also enabling third party remi package repositories.wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmsudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
# Finally, download and install Erlang:yum install -y erlang

install python-pip
yum install -y python-pippip install --upgrade pip

install RabbitMQ
# Download the latest RabbitMQ package using wget:wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.2.2/rabbitmq-server-3.2.2-1.noarch.rpm
# Add the necessary keys for verification:rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
# Install the .RPM package using YUM:yum install rabbitmq-server-3.2.2-1.noarch.rpm

To enable RabbitMQ Management Console, run the following:
sudo rabbitmq-plugins enable rabbitmq_management

Once you\'ve enabled the console, it can be accessed using your favourite web browser by visiting: 
http://[your droplet\'s IP]:15672/.\r\n

The default username and password are both set “guest” for the log in.

To have RabbitMQ start as a daemon by default, run the following:
chkconfig rabbitmq-server on\r\n

To start, stop, restart and check the application status, use the following:
# To start the service:/sbin/service rabbitmq-server start
# To stop the service:/sbin/service rabbitmq-server stop
# To restart the service:/sbin/service rabbitmq-server restart
# To check the status:/sbin/service rabbitmq-server status

And that's it! You now have your own message queue working on your virtual server.

bron: https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-rabbitmq

Zie ook:
pip install pika

bron: https://www.rabbitmq.com/tutorials/tutorial-one-python.html