内容简介: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
-
erlang otp_src_22.0.tar.gz
-
rabbitmq-server rabbitmq-server-generic-unix-3.7.15.tar.xz
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
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Android编程权威指南(第3版)
比尔·菲利普斯 (Bill Phillips)、克里斯·斯图尔特 (Chris Stewart)、克莉丝汀·马西卡诺 (Kristin Marsicano) / 王明发 / 人民邮电出版社 / 2017-6 / 129.00元
Big Nerd Ranch 是美国一家专业的移动开发技术培训机构。本书主要以其Android 训练营教学课程为基础,融合了几位作者多年的心得体会,是一本完全面向实战的Android 编程权威指南。全书共36 章,详细介绍了8 个Android 应用的开发过程。通过这些精心设计的应用,读者可掌握很多重要的理论知识和开发技巧,获得宝贵的开发经验。 第3 版较之前版本增加了对数据绑定等新工具的介......一起来看看 《Android编程权威指南(第3版)》 这本书的介绍吧!