# yum install epel-release
CentOS and Red Hat Enterprise Linux 6.x
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
CentOS and Red Hat Enterprise Linux 7.x
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh epel-release-latest-7*.rpm
# rabbitmq
# ubuntu & debian
# apt-get install rabbitmq-server
# ## install erlang
# centos
# 1. Alternatively: adding the repository entry manually
# RPM packages are signed. To add Erlang Solutions key, execute command:
rpm --import http://packages.erlang-solutions.com/rpm/erlang_solutions.asc
# Add the following lines to some file in /etc/yum.repos.d/:
[erlang-solutions]
name=Centos $releasever - $basearch - Erlang Solutions
baseurl=http://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch
gpgcheck=1
gpgkey=http://packages.erlang-solutions.com/rpm/erlang_solutions.asc
enabled=1
# 2. Installing Erlang
# Call the following command to install the erlang package:
sudo yum install erlang
# or this command to install the esl-erlang package:
sudo yum install esl-erlang
# ## install rabbitmq
# Using PackageCloud RPM Repository : https://packagecloud.io/rabbitmq/rabbitmq-server/install
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
# or installed by rpm
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
# wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.2/rabbitmq-server-3.6.2-1.noarch.rpm
yum install rabbitmq-server-3.6.2-1.noarch.rpm
# start rabbitmq
service rabbitmq-server start
# configure
rabbitmqctl add_user myuser mypsw # can't contains '*' (bidong, portal_bidong)
rabbitmqctl add_vhost myvhost # portal
rabbitmqctl set_user_tags myuser mytags # portal
rabbitmqctl set_permissions -p myvhost myuser ".*" ".*" ".*"
rabbitmqctl delete_user guest # for security, delete guest account
rabbitmqctl list_permissions [-p /] myuser
# celery
pip install celery
# tornado-celery
pip install tornado-celery
# tips
# if can't receive celery response, may be pika version proble. (tornado-celery: v0.3.5)
pip2.7 install pika==0.9.14