标签:rpmbuild rabbit mqc hub arc plugins github get sudo
rabbitmq 官方安装文档可参考:http://www.rabbitmq.com/install-rpm.html ,由于rabbitmq 使用Erlang 开发的,运行环境需要用到Erlang,本文主要记录采用zero-dependency Erlang 方式搭建rabbitmq 环境。
1、安装Erlang基础依赖:
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
2、下载编译源码https://github.com/rabbitmq/erlang-rpm
3、采用 Without Docker方式编译:
进入源码主目录,运行 make
如果make时出现错误 :rpmbuild: Command not found
则执行: sudo yum install rpm-build
4、安装Erlang
yum install erlang-19.3.4-1.el6.x86_64.rpm
5、测试Erlang
6、安装rabbitmq
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
yum install rabbitmq-server-3.6.9-1.el6.noarch.rpm
7、启动rabbitmq
/sbin/service rabbitmq-server start
8、查看rabbitmq服务状态
rabbitmqctl status
9、查看plugin 列表
rabbitmq-plugins list
10、enable plugin
rabbitmq-plugins enable rabbitmq_management
11、其他一些常用命令
rabbitmqctl list_users
rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
centos6.5 已 zero-dependency Erlang from RabbitMQ 搭建环境
标签:rpmbuild rabbit mqc hub arc plugins github get sudo
原文地址:http://www.cnblogs.com/jessezeng/p/6899152.html