RabbitMQ安装

目录

ncurses-devel安装

erlang安装

simpleJson安装

RabbitMQ安装

启动web管理


ncurses-devel安装

在Linux上安装ErLang环境时,如果出现 configure: error: No curses library functions found 提示,先安装ncurses-devel

yum install -y  ncurses-devel

erlang安装

下载地址:http://www.erlang.org/downloads

[root@VM-8-3-centos data]# tar -zxvf otp_src_24.3.3.tar.gz
[root@VM-8-3-centos data]# cd otp_src_24.3.3/
[root@VM-8-3-centos otp_src_24.3.3]# ./configure --prefix=/opt/erlang
[root@VM-8-3-centos otp_src_24.3.3]# make && make install

vim /etc/profile文件,添加下面的环境变量:

ERLANG_HOME=/opt/erlang
export PATH=$PATH:$ERLANG_HOME/bin
export ERLANG_HOME
source /etc/profile

simpleJson安装

下载地址:https://pypi.python.org/pypi/simplejson/

[root@VM-8-3-centos data]# tar -zxvf simplejson-3.17.6
[root@VM-8-3-centos data]# cd simplejson-3.17.6/
[root@VM-8-3-centos data]# python setup.py install

RabbitMQ安装

下载地址:http://www.rabbitmq.com/releases/rabbitmq-server

[root@VM-8-3-centos data]# xz -dk rabbitmq-server-generic-unix-3.9.16.tar.xz
[root@VM-8-3-centos data]# tar -xvf rabbitmq-server-generic-unix-3.9.16.tar
[root@VM-8-3-centos data]# vim /etc/profile

在末尾加入以下环境变量

export PATH=$PATH:/data/rabbitmq_server-3.9.16/sbin

执行 source /etc/profile 让环境变量生效

启动 rabbitmq-server -detached

[root@VM-8-3-centos data]# rabbitmq-server -detached

查看状态 rabbitmqctl status

[root@VM-12-17-centos erlang]# rabbitmqctl status
Status of node rabbit@VM-12-17-centos ...
Runtime

OS PID: 9151
OS: Linux
Uptime (seconds): 7
Is under maintenance?: false
RabbitMQ version: 3.9.16
Node name: rabbit@VM-12-17-centos
Erlang configuration: Erlang/OTP 24 [erts-12.3.1] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1]
Erlang processes: 271 used, 1048576 limit
Scheduler run queue: 1
Cluster heartbeat timeout (net_ticktime): 60

Plugins

Enabled plugin file: /data/rabbitmq_server-3.9.16/etc/rabbitmq/enabled_plugins
Enabled plugins:


Data directory

Node data directory: /data/rabbitmq_server-3.9.16/var/lib/rabbitmq/mnesia/rabbit@VM-12-17-centos
Raft data directory: /data/rabbitmq_server-3.9.16/var/lib/rabbitmq/mnesia/rabbit@VM-12-17-centos/quorum/rabbit@VM-12-17-centos

Config files


Log file(s)

 * /data/rabbitmq_server-3.9.16/var/log/rabbitmq/rabbit@VM-12-17-centos.log
 * /data/rabbitmq_server-3.9.16/var/log/rabbitmq/rabbit@VM-12-17-centos_upgrade.log
 * <stdout>

Alarms

(none)

Memory

Total memory used: 0.0764 gb
Calculation strategy: rss
Memory high watermark setting: 0.4 of available memory, computed to: 1.5893 gb

code: 0.0295 gb (38.65 %)
other_proc: 0.0174 gb (22.81 %)
other_system: 0.0133 gb (17.44 %)
allocated_unused: 0.0064 gb (8.41 %)
reserved_unallocated: 0.0048 gb (6.35 %)
other_ets: 0.0029 gb (3.84 %)
atom: 0.0013 gb (1.76 %)
metrics: 2.0e-4 gb (0.28 %)
binary: 2.0e-4 gb (0.23 %)
mnesia: 1.0e-4 gb (0.12 %)
plugins: 0.0 gb (0.04 %)
msg_index: 0.0 gb (0.04 %)
quorum_ets: 0.0 gb (0.03 %)
stream_queue_procs: 0.0 gb (0.0 %)
stream_queue_replica_reader_procs: 0.0 gb (0.0 %)
connection_channels: 0.0 gb (0.0 %)
connection_other: 0.0 gb (0.0 %)
connection_readers: 0.0 gb (0.0 %)
connection_writers: 0.0 gb (0.0 %)
mgmt_db: 0.0 gb (0.0 %)
queue_procs: 0.0 gb (0.0 %)
queue_slave_procs: 0.0 gb (0.0 %)
quorum_queue_procs: 0.0 gb (0.0 %)
stream_queue_coordinator_procs: 0.0 gb (0.0 %)

File Descriptors

Total: 2, limit: 99904
Sockets: 0, limit: 89911

Free Disk Space

Low free disk space watermark: 0.05 gb
Free disk space: 53.3234 gb

Totals

Connection count: 0
Queue count: 0
Virtual host count: 1

Listeners

Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
Interface: [::], port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0

停止

[root@VM-12-17-centos erlang]# rabbitmqctl stop

启动web管理

rabbitmq-plugins enable rabbitmq_management

访问地址:http://localhost:15672

默认账号密码:guest / guest

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值