Erlang & rabbitmq installation and configuration

Source: Internet
Author: User
Tags snmp
How to install Erlang & rabbitmq in centos 6.8

1. Install Erlang
1.1 preparations: Install the dependent libraries and application tools first
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel? rsync perl-net-snmp wx fop net-snmp unixODBC unixODBC-devel vim make lrzsz bc sysstat lsof wget xz

1.2 download Erlang source code
Wget http://www.erlang.org/download/otp_src_20.0.tar.gz
CD/root/NHT
Tar zxvf otp_src_1_0.tar.gz
1.3 compile and install

CD otp_src_20.0. /configure -- prefix =/usr/local/Erlang -- With-SSL -- enable-threads -- enable-smp-support -- enable-kernel-poll -- enable-hipe -- without-javac' ''? // Avoid Java compilation, so remove Java to avoid errors? Make & make install // After compilation? 1.4 configure Environment Variables

VI/etc/profile?
Erl_home =/usr/local/Erlang?
Export Path = $ erl_home/bin: $ path?

2. Download rabbitmq2.1

CD/root/NHT
Wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-3.6.10.tar.xz
Xz-D rabbitmq-server-3.6.10.tar.xz
Tar xvf rabbitmq-server-3.6.10.tar

2.2 install dependency library Yum-y install xmlto otherwise compilation will not pass:/bin/sh: Line 1: xmlto: Command not found2.3 compile CD rabbitmq-server-3.6.10 edit makefile, modify as follows:

Make make install target_dir =/usr/local/rabbitmq-server sbin_dir =/usr/local/rabbitmq/sbin man_dir =/usr/local/rabbitmq/man // compile rabbitmq/ usr/local/rabbitmq-Server Directory 2.4 install the Web plug-in management interface CD/usr/local/rabbitmq/sbin mkdir/etc/rabbitmq /. /rabbitmq-plugins enable rabbitmq_management to view the ins list. /rabbitmq-plugins list2.5 Common commands start rabbitmq. /rabbitmq-server-detached use the command to add a user and authorize 1. Add the configuration file in/etc/rabbitmq. config Configuration Add the user./rabbitmqctl add_user admin [email protected] to the file (if it does not exist). Set permissions. /rabbitmqctl set_permissions-P "/" admin ". *"". *"". * "set user roles. /rabbitmqctl set_user_tags admin administrator to view the newly added admin. /rabbitmqctl? List_users

Delete user:./rabbitmqctl? Delete_user? Admin enters http: // 192.168.185.72: 15672 in the browser. The logon Management page displays the admin/[email protected] admin/[email protected] by default.


Disable rabbitmq./rabbitmqctl stop

Erlang & rabbitmq installation and configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.