CentOS 7 安装RabbitMQ 3.3

http://www.cnblogs.com/shanyou/p/3902905.html

1、安装erlang 语言环境

安装依赖文件

#yum install ncurses-devel

进入 http://www.erlang.org/download.html 选择源文件下载

wget http://www.erlang.org/download/ otp_src_17.1.tar.gz
tar zxvf  otp_src_17.1.tar.gz
cd  otp_src_17.1
    阅读HOTO/INSTALL.md文件 
#./configure
   #make && make install 

安装完成以后,执行erl看是否能打开eshell,用’halt().’退出,注意后面的点号,那是erlang的结束符。

[[email protected] src]# erl
Erlang/OTP 17 [erts-6.1] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.1  (abort with ^G)

2> 9+3.

12

3> halt().

2、安装RabbitMQ

安装依赖文件:

yum install xmlto

进入http://www.rabbitmq.com/download.html选择最新的源码包

#wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.3.4/rabbitmq-server-3.3.4.tar.gz

#tar zxvf rabbitmq-server-3.3.4.tar.gz

#cd rabbitmq-server-3.3.4

#make TARGET_DIR=/usr/rabbitmq SBIN_DIR=/usr/rabbitmq/sbin MAN_DIR=/usr/rabbitmq/man DOC_INSTALL_DIR=/usr/rabbitmq/doc

#make TARGET_DIR=/usr/rabbitmq SBIN_DIR=/usr/rabbitmq/sbin MAN_DIR=/usr/rabbitmq/man DOC_INSTALL_DIR=/usr/rabbitmq/doc  install

3、启动rabbitmq-server

运行rabbitmq:

# /usr/rabbitmq/sbin/rabbitmq-server  -detached

查看rabbitmq状态:

# /usr/rabbitmq/sbin/rabbitmqctl status

关闭rabbitmq:

# /usr/rabbitmq/sbin/rabbitmqctl stop

4、查看RabbitMQ服务启动的状态,并开启RabbitMQ的相应管理插件

[[email protected] sbin]# ./rabbitmqctl status
Status of node [email protected] ...

[{pid,35112},

{running_applications,[{rabbit,"RabbitMQ","3.3.4"},

{os_mon,"CPO  CXC 138 46","2.2.15"},

{xmerl,"XML parser","1.3.7"},

{mnesia,"MNESIA  CXC 138 12","4.12.1"},

{sasl,"SASL  CXC 138 11","2.4"},

{stdlib,"ERTS  CXC 138 10","2.1"},

{kernel,"ERTS  CXC 138 10","3.0.1"}]},

{os,{unix,linux}},

{erlang_version,"Erlang/OTP 17 [erts-6.1] [source] [64-bit] [async-threads:30] [hipe] [kernel-poll:true]\n"},

{memory,[{total,35218336},

{connection_procs,2728},

{queue_procs,5456},

{plugins,0},

{other_proc,13339072},

{mnesia,57552},

{mgmt_db,0},

{msg_index,33968},

{other_ets,708832},

{binary,30112},

{code,16881166},

{atom,654217},

{other_system,3505233}]},

{alarms,[]},

{listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},

{vm_memory_high_watermark,0.4},

{vm_memory_limit,769332019},

{disk_free_limit,50000000},

{disk_free,45550653440},

{file_descriptors,[{total_limit,924},

{total_used,3},

{sockets_limit,829},

{sockets_used,1}]},

{processes,[{limit,1048576},{used,124}]},

{run_queue,0},

{uptime,2182}]

...done.

[[email protected] sbin]# ./rabbitmq-plugins list

[ ] amqp_client                       3.3.4

[ ] cowboy                            0.5.0-rmq3.3.4-git4b93c2d

[ ] eldap                             3.3.4-gite309de4

[ ] mochiweb                          2.7.0-rmq3.3.4-git680dba8

[ ] rabbitmq_amqp1_0                  3.3.4

[ ] rabbitmq_auth_backend_ldap        3.3.4

[ ] rabbitmq_auth_mechanism_ssl       3.3.4

[ ] rabbitmq_consistent_hash_exchange 3.3.4

[ ] rabbitmq_federation               3.3.4

[ ] rabbitmq_federation_management    3.3.4

[ ] rabbitmq_management               3.3.4

[ ] rabbitmq_management_agent         3.3.4

[ ] rabbitmq_management_visualiser    3.3.4

[ ] rabbitmq_mqtt                     3.3.4

[ ] rabbitmq_shovel                   3.3.4

[ ] rabbitmq_shovel_management        3.3.4

[ ] rabbitmq_stomp                    3.3.4

[ ] rabbitmq_test                     3.3.4

[ ] rabbitmq_tracing                  3.3.4

[ ] rabbitmq_web_dispatch             3.3.4

[ ] rabbitmq_web_stomp                3.3.4

[ ] rabbitmq_web_stomp_examples       3.3.4

[ ] sockjs                            0.3.4-rmq3.3.4-git3132eb9

[ ] webmachine                        1.10.3-rmq3.3.4-gite9359c7

[[email protected] sbin]#

运行如下的命令,增加用户admin,密码admin

[[email protected] sbin]# ./rabbitmqctl add_user admin admin

Creating user "admin" ...

...done.

[[email protected] sbin]# ./rabbitmqctl set_user_tags admin administraotr

Setting tags for user "admin" to [administraotr] ...

...done.

[[email protected] sbin]# ./rabbitmqctl list_users

Listing users ...

admin   [administraotr]

guest   [administrator]

...done.

NET下RabbitMQ实践[配置篇]

NET下RabbitMQ实践[示例篇]

NET下RabbitMQ实践[WCF发布篇]

NET下RabbitMQ实践[实战篇]

RabbitMQ C# Tutorial

[Erlang 0086] RabbitMQ 集群: 从零开始

时间: 2024-10-10 17:05:23

CentOS 7 安装RabbitMQ 3.3的相关文章

在Centos上安装RabbitMQ流程(转)

在Centos上安装RabbitMQ流程------------------------ 1. 需求 由于项目中要用到消息队列,经过ActiveMQ与RabbitMQ的比较,最终选择了RabbbitMQ做为我们的消息系统,但是ActiveMQ在效率和可扩展性上都不错,只是网上很多人反应它会时常崩溃,而且随着消息并发数的增加,时常会出现连接很慢的情况.   目前我测试的服务器系统信息如下: LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1

CentOS上安装RabbitMQ

所需环境 操作系统:Centos服务一台 网络环境:可以访问公网 安装Erlang RabbitMQ是一个开源的AMQP实现,服务器端用Erlang语言编写,支持多种客户端,如:Python.Ruby..NET.Java.JMS.C.PHP.ActionScript.XMPP.STOMP等,支持AJAX.用于在分布式系统中存储转发消息,在易用性.扩展性.高可用性等方面表现不俗.安装过程如有不懂可以参照官网:rabbitmq yum install -y erlang //-y参数表示忽略回答安装

CentOS 7安装RabbitMQ

环境: CentOS 7.6 Erlang OTP 20.3 Released RabbitMQ 3.7.17 防火墙状态:not running (也可以根据情况开放指定的端口) 执行角色:administrator/root 一.安装Erlang 1.安装Erlang环境 yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget 2.下载Erlang后上传到CentOS根目录(otp_src

CentOS 6 安装RabbitMQ

1. 安装erlang, 以root身份执行下面命令 yum install erlang 2.安装rabbitmq rpm wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpm rpm -ivh rabbitmq-server-3.5.0-1.noarch.rpm 3.安装完成后需要对RabbitMQ进行配置,在etc/rabbitmq目录下创建两个文件 r

centos 7 安装rabbitmq 3.6.12

1 安装erlang (1)更新erlang仓库 wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm rpm -Uvh erlang-solutions-1.0-1.noarch.rpm (2)安装erlang sudo yum install erlang 2 安装依赖包yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel o

CentOS yum 安装RabbitMQ

最近在做机器学习的任务系统,任务模块使用了消息对联,比较快速的搭建方法: 1.安装erlang 下载rpm仓库:wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm 安装rpm仓库rpm -Uvh erlang-solutions-1.0-1.noarch.rpm 安装erlangyum -y install erlang 2.安装RabbitMQ 下载RabbitMQ的rpm:wget http:

Centos 8 安装Rabbit-MQ

参考文档:https://www.rabbitmq.com/install-rpm.htm 1. 首先需要安装ErLang # dnf install -y wget epel-release # wget https://github.com/rabbitmq/erlang-rpm/releases/download/v21.3.8.6/erlang-21.3.8.6-1.el7.x86_64.rpm # dnf install -y erlang-21.3.8.6-1.el7.x86_64.

CentOS 7 安装 RabbitMQ 就是这么简单

目录 环境准备 1.下载并上传对应版本的软件包 1.1.Erlang 下载 1.2.RabbitMQ 下载 1.3. 上传 2.安装依赖 3.Erlang 安装 4.RabbitMQ 安装 5.安装 WEB 管理界面 6.RabbitMQ 用户管理 7.登录验证 @(终于等到你) 环境准备 基础系统:CentOS 7.6 Erlang 和 RabbitMQ 需要版本对应,参考 这里,本次使用如下版本 Erlang:otp_src_22.0.tar.gz (RabbitMQ 是基于 Erlang

windows server 2003 64bit SP2下安装RabbitMQ

一.背景 近期做一个小的基础组件,主要作用是异步消息通知.缓存维护.以及耗时任务处理. 当中消息通知和耗时任务处理要用到开源的RabbitMQ作为消息中心server. 可是有一点比較恶心,我这个组件是要执行在现有的系统中,即要给现有的系统升级,将我这个组件用进去,并且,除了除数据库server之外,全部server都是windows server 2003 enterprise edition sp2 64bit的.你没看错,就是这么古老的机器... 二.面临的问题 之前在windows se