install rabbitmq for centos7

栏目: Redis · 发布时间: 5年前

内容简介:RabbitMQ is the most widely deployed open source message broker.RabbitMQ is lightweight and easy to deploy on premises and in the cloud. It supports multiple messaging protocols. RabbitMQ can be deployed in distributed and federated configurations to meet

RabbitMQ is the most widely deployed open source message broker.

RabbitMQ is lightweight and easy to deploy on premises and in the cloud. It supports multiple messaging protocols. RabbitMQ can be deployed in distributed and federated configurations to meet high-scale, high-availability requirements.

basic env

cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)

install list

rabbitmq-server 版本要与erlang 版本相匹配,否则rabbitmq-server 启动失败,会提示 noproc ;

pre-env

yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel

如果提示要安装 wxWidgets wx-config, 安装如下,

wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.4/wxWidgets-3.0.4.tar.bz2

yum install -y bzip2

tar -jxvf wxWidgets-3.1.2.tar.bz2 && cd wxWidgets-3.1.2

./configure --prefix=/opt/wx && make && make install

vi /etc/profile

export WX=/opt/wx
export PATH=$PATH:$WX/bin:$WX/lib

source /etc/profile

install erlang

tar -xvf otp_src_22.0.tar.gz  && cd otp_src_22.0

./configure --prefix=/opt/erlang --without-javac

make && make install

vi /etc/profile

export ERLANG=/opt/erlang
export PATH=$PATH:$ERLANG/bin

source /etc/profile

验证erlang 是否按照成功

# erl version
Erlang/OTP 22 [erts-10.4] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [hipe]

Eshell V10.4  (abort with ^G)
1> halt().
#

install rabbitmq-server

tar -xvf rabbitmq-server-generic-unix-3.7.15.tar.xz && mv rabbitmq-server-generic-unix-3.7.15 rabbitmq

vi /etc/profile

export PATH=$PATH:/opt/rabbitmq/sbin
export RABBITMQ_HOME=/opt/rabbitmq

source /etc/profile

start rabbitmq-server

rabbitmq-server -detached

rabbitmqctl status

rabbitmqctl cluster_status

enable rabbitmq-web-management

rabbitmqctl add_user admin 123456
rabbitmqctl set_user tags admin administrator
rabbitmqctl set_user_tags admin administrator
rabbitmq-plugins enable rabbitmq_management

上述操作后, 就可以在浏览器端访问 http://ip:15672 然后通过admin 123456 登录了;

config

官方参考文档: https://www.rabbitmq.com/configure.html#configuration-file

配置文件简单理解就是创建俩文件rabbitmq-env.conf,rabbitmq.config然后都扔到/etc/rabbitmq目录下即可

[root@test02 rabbitmq]# pwd
/opt/rabbitmq/etc/rabbitmq
[root@test02 rabbitmq]# ls
enabled_plugins  rabbitmq.config  rabbitmq-env.conf
[root@test02 rabbitmq]# more rabbitmq-env.conf
RABBITMQ_MNESIA_BASE=/usr/local/rabbitmq-server/data
RABBITMQ_LOG_BASE=/usr/local/rabbitmq-server/log

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

爆裂

爆裂

[美] 伊藤穰一、[美] 杰夫·豪 / 张培、吴建英、周卓斌 / 中信出版集团 / 2017-9-1 / 65.00元

越是在发生重大改变的时刻,越是会出现两极分化,赢家、输家有时只在一念间。未来已经装上了全新的操作系统。这是一个重大升级,对我们而言,随之而来的则是陡峭的学习曲线。在指数时代,替换旧逻辑,我们的思维亟需与世界对接,推翻过去已经成为大众所接受的常识,学会差异化思考才能屹立不倒,不被卷入历史的洪流。 在《爆裂》一书中,伊藤穰一和杰夫·豪将这一逻辑提炼为9大原则,帮助人们驾驭这一动荡时刻,应对当下的......一起来看看 《爆裂》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换