博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RabbitMQ搭建过程-基于Ubuntu16.04
阅读量:6412 次
发布时间:2019-06-23

本文共 2625 字,大约阅读时间需要 8 分钟。

hot3.png

安装参考:官方文档 http://www.rabbitmq.com/install-debian.html#apt

In order to use the repository, add a key used to sign RabbitMQ releases to apt-key:

wget -O - 'https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc' | sudo apt-key add -

This will instruct apt to trust packages signed by that key.

As with all 3rd party Apt (Debian) repositories, a file describing the repository must be placed under the /etc/apt/sources.list.d/ directory. /etc/apt/sources.list.d/bintray.erlang.list is the recommended location. The file should have a source (repository) definition line that uses the following pattern:

# See below for supported distribution and component valuesdeb https://dl.bintray.com/rabbitmq/debian $distribution $component

The next couple of sections discuss what distribution and component values are supported.

deb http://dl.bintray.com/rabbitmq/debian xenial erlang-21.x

After updating the list of apt sources it is necessary to run apt-get update:

sudo apt-get update

Then packages can be installed just like with the standard Debian repositories:

# or "erlang"sudo apt-get install erlang-nox

避免版本更新:

Package pinning is configured with a file placed under the /etc/apt/preferences.d/ directory, e.g. /etc/apt/preferences.d/erlang. After updating apt preferences it is necessary to run apt-get update:

sudo apt-get update

The following preference file example will configure apt to install erlang-* packages from Bintray and not standard Debian or Ubuntu repository:

# /etc/apt/preferences.d/erlangPackage: erlang*Pin: release o=BintrayPin-Priority: 1000

This apt preference configuration is recommended when the erlang .

Effective package pinning policy can be verified with

sudo apt-cache policy

The following preference file example will pin all erlang-* packages to 20.3.8.2 (assuming  for the package is 1):

# /etc/apt/preferences.d/erlangPackage: erlang*Pin: version 1:20.3.8.2-1Pin-Priority: 1000

 

RabbitMQ 安装

2.1 添加签名

wget -O - 'https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc' | sudo apt-key add -

在/etc/apt/sources.list.d/目录下创建文件bintray.rabbitmq.list

# See below for supported distribution and component valuesdeb https://dl.bintray.com/rabbitmq/debian $distribution main

57b554ce22742c196bef5b05f0770668e5e.jpg

示例:

deb https://dl.bintray.com/rabbitmq/debian xenial main

下载安装包:

sudo apt-get update

安装

sudo apt-get install rabbitmq-server

启动

root:/usr/lib/rabbitmq/bin# rabbitmq-server start

停止

root:/usr/lib/rabbitmq/bin# rabbitmq-server stop

启动:sudo rabbitmq-server start关闭: sudo rabbitmq-server stop重启: sudo rabbitmq-server restart查看状态:sudo rabbitmqctl status

 

 

转载于:https://my.oschina.net/leichunyuan/blog/1931703

你可能感兴趣的文章
WPF路径动画(动态逆向动画)
查看>>
Low Level Reader Protocol (LLRP) 简介
查看>>
[Micropython]TPYBoard v10x NRF24L01无线通讯模块使用教程
查看>>
mysql中show processlist过滤和杀死线程
查看>>
最新Sublime Text 2 激活 汉化
查看>>
基础数据类型之字典
查看>>
第七次作业
查看>>
Oracle中NVARCHAR2与VARCHAR2的区别
查看>>
php debug
查看>>
Ubuntu构建LVS+Keepalived高可用负载均衡集群【生产环境部署】
查看>>
lvm实现快速备份文件及数据库,lvm快照原理
查看>>
设计模式之Factory Method(工厂方法)
查看>>
10K入职linux运维岗位小伙伴感谢信及面试经历分享
查看>>
zookeeper入门之Curator的使用之几种监听器的使用
查看>>
[转]Reporting Service部署之访问权限
查看>>
innerxml and outerxml
查看>>
validform校验框架不显示错误提示
查看>>
flink 获取上传的Jar源码
查看>>
Spring Data JPA Batch Insertion
查看>>
UEditor自动调节宽度
查看>>