CentOS7 minimal安装erLang和RabbitMQ

CentOS7 minimal安装erLang和RabbitMQ

#准备

vi /etc/hosts

127.0.0.1yourhostname

# 安装

yum install -y wget gcc glibc-devel make ncurses-devel openssl-devel autoconf && wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm && wget http://fr2.rpmfind.net/linux/remi/enterprise/7/remi/x86_64/remi-release-7.1-3.el7.remi.noarch.rpm

rpm -Uvh epel-release-7-5.noarch.rpm remi-release-7.1-3.el7.remi.noarch.rpm && wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm && rpm -ivh erlang-solutions-1.0-1.noarch.rpm && yum install -y erlang && wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.0/rabbitmq-server-3.6.0-1.noarch.rpm && rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc && yum install -y rabbitmq-server-3.6.0-1.noarch.rpm && rabbitmq-plugins enable rabbitmq_management && chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/ && chkconfig rabbitmq-server on

扫描二维码关注公众号,回复: 487200 查看本文章

# 启动

/usr/sbin/rabbitmq-server

# 添加管理员

rabbitmqctl add_user mqadmin mqadmin && rabbitmqctl set_user_tags mqadmin administrator &&rabbitmqctl set_permissions -p / mqadmin ".*" ".*" ".*"

/etc/rabbitmq/rabbitmq-env.conf

猜你喜欢

转载自stevendu.iteye.com/blog/2269637