官术网_书友最值得收藏!

Advanced RabbitMQ setups

The Docker-based setup described in the preceding section allows you to get started quickly and are also (with a few adjustments) suitable for production setups. If you do not want to use Docker for your message broker, you can also install RabbitMQ on most common Linux distribution from package repositories. For example, on Ubuntu and Debian, you can install RabbitMQ using the following commands:

$ echo 'deb http://www.rabbitmq.com/debian/ testing main' | \ 
    sudo tee /etc/apt/sources.list.d/rabbitmq.list 
$ wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | \ 
    sudo apt-key add - 
$ apt-get update 
$ apt-get install -y rabbitmq-server 

Similar commands also work on CentOS and RHEL:

$ rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc 
$ yum install rabbitmq-server-3.6.6-1.noarch.rpm 

For a production setup, you might want to consider setting up RabbitMQ as a cluster to ensure high availability. Take a look at the official documentation at http://www.rabbitmq.com/clustering.html for more information on how to set up a RabbitMQ cluster.

主站蜘蛛池模板: 会宁县| 潜山县| 延川县| 衡东县| 应城市| 漠河县| 枣阳市| 武川县| 庆阳市| 都兰县| 武宣县| 梅河口市| 赤水市| 伊金霍洛旗| 利辛县| 阿图什市| 商城县| 鹿泉市| 驻马店市| 湟源县| 丹巴县| 黄大仙区| 永吉县| 南川市| 郑州市| 高青县| 大埔区| 武穴市| 涿鹿县| 淮滨县| 册亨县| 连城县| 紫阳县| 兴宁市| 游戏| 长白| 杨浦区| 安义县| 抚顺县| 海安县| 措美县|