赞
踩
Centos7安装配置rabbitmq服务分为两步:
1.下载erlang和rabbitmq
2.安装配置
yum remove erlang*
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC unixODBC-devel httpd python-simplejson
wget http://www.erlang.org/download/otp_src_20.1.tar.gz
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.0/rabbitmq-server-generic-unix-3.7.0.tar.xz
可以通过wget指定版本下载,也可以在win下载好传到虚拟机。
tar -xvf otp_src_20.1.tar.gz
cd otp_src_20.1
# erlang指定安装在/usr/local/erlang目录
./configure --prefix=/usr/local/erlang --enable-smp-support --enable-threads --enable-sctp --enable-kernel-poll --enable-hipe --with-ssl --without-javac
make && make install
vi /etc/profile
source /etc/profile
xz -d rabbitmq-server-generic-unix-3.7.0.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.7.0.tar
cd rabbitmq_server-3.7.0/sbin
./rabbitmq-server -detached #-detached后台启动 不占用terminal进程
./rabbitmq-plugins enable rabbitmq_management #启动管理界面
#关闭防火墙
systemctl stop firewalld
#开机禁用
systemctl disable firewalld
#查看状态
systemctl status firewalld
localhost:5672 #服务
localhost:15672 #管理界面
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。