Discuz! Board
标题:
rabbitmq安装方法
[打印本页]
作者:
zhoulei
时间:
2016-3-18 11:25
标题:
rabbitmq安装方法
wget
http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpm
wget
http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum install erlang
rpm -ivh rabbitmq-server-3.5.0-1.noarch.rpm --force --nodeps
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart
echo "[{rabbit, [{loopback_users, []}]}]." >> /etc/rabbitmq/rabbitmq.config
echo "RABBITMQ_LOG_BASE=/data/logs/rabbitmq/log" >> rabbitmq-env.conf
echo "RABBITMQ_MNESIA_BASE=/data/rabbitmq/data" >> rabbitmq-env.conf
service rabbitmq-server restart
可以浏览:http://localhost:15672
作者:
admin
时间:
2017-6-13 17:19
官网:
http://www.rabbitmq.com/install-rpm.html
注意:rabbitmq对erlang版本有要求,安装时间注意erlang版本是否被新的rabbitmq支持。
安装erlang:
wget
https://packages.erlang-solution ... ~centos~6_amd64.rpm
rpm -ivh esl-erlang_19.3-1~centos~6_amd64.rpm
一、进入官网下载相应版本rabbitmq
wget
http://www.rabbitmq.com/releases ... .9-1.el6.noarch.rpm
二、下载相应版本erlang
1. wget
https://packages.erlang-solution ... ns-1.0-1.noarch.rpm
2.
3. rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
4.
5. yum install erlang
三、安装rabbitmq
rpm -ivh rabbitmq-server-3.6.9-1.el6.noarch.rpm
如警告
[root@172-16-16-111 jiaoben]# rpm -ivh rabbitmq-server-3.6.9-1.el6.noarch.rpm
warning: rabbitmq-server-3.6.9-1.el6.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 6026dfca: NOKEY
error: Failed dependencies:
socat is needed by rabbitmq-server-3.6.9-1.el6.noarch
需安装socat后再安装rabbitmq
1. yum install socat
三、启动与修改配置
##启动
1. rabbitmq-plugins enable rabbitmq_management
2. service rabbitmq-server restart
##修改配置文件
echo "[{rabbit, [{loopback_users, []}]}]." >> /etc/rabbitmq/rabbitmq.config
echo "RABBITMQ_LOG_BASE=/data/logs/rabbitmq/log" >> /etc/rabbitmq/rabbitmq-env.conf
echo "RABBITMQ_MNESIA_BASE=/data/rabbitmq/data" >> /etc/rabbitmq/rabbitmq-env.conf
##重启
1. service rabbitmq-server restart
四、验证
##验证地址
1. http://localhost:15672
##帐号密码
1. 帐号:guest
2. 密码:guest
欢迎光临 Discuz! Board (http://123.59.83.120:8080/)
Powered by Discuz! X3.2