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

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.

主站蜘蛛池模板: 凉城县| 东台市| 阳新县| 岳阳县| 大厂| 平原县| 华池县| 清水河县| 新乡市| 广州市| 腾冲县| 无极县| 肇东市| 星子县| 夏津县| 沙坪坝区| 白水县| 玉门市| 河间市| 宝山区| 汝阳县| 都匀市| 安龙县| 湟源县| 潮州市| 祁门县| 日土县| 大荔县| 江陵县| 阿鲁科尔沁旗| 康保县| 昌图县| 泰宁县| 和顺县| 丽江市| 平泉县| 古蔺县| 克东县| 大埔区| 南阳市| 乐亭县|