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

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.

主站蜘蛛池模板: 夹江县| 乐安县| 宁德市| 建平县| 河北区| 乐业县| 吉木乃县| 广东省| 旬邑县| 尚志市| 德江县| 土默特右旗| 嫩江县| 佛坪县| 喀什市| 同江市| 连城县| 城市| 漠河县| 房山区| 鸡泽县| 丰顺县| 吴桥县| 衡阳市| 沅江市| 平果县| 酉阳| 唐海县| 德阳市| 昆明市| 湘潭县| 松潘县| 射阳县| 河间市| 伽师县| 恭城| 金溪县| 山阳县| 临安市| 六枝特区| 渝中区|