Linux Learning: Installing RABBITMQ

Source: Internet
Author: User
Tags rabbitmq

First step: Install Erlang

1. Add dependent Environment

Yum-y install make GCC gcc-c++ kernel-devel M4 ncurses-devel openssl-devel Unixodbc-devel

2, decompression otp_src_19.0.tar.gz

[Email protected] tar]# TAR-XVF otp_src_19.0.tar.gz-c/opt

3, enter into the otp_src_19.0 directory, configure

[Email protected] otp_src_19.0]#/configure--prefix=/usr/local/erlang--with-ssl-enable-threads- Enable-smmp-support-enable-kernel-poll--enable-hipe--without-javac

4. Make

[[email protected] otp_src_19.0]# make && make install

5. Configure profile

Export Erl_home=/usr/local/erlang export path=.: $JAVA _home/bin: $REDIS _home/bin: $ERL _home/bin: $PATH

6. Refresh the configuration

Source/etc/profile

7, test, input Erl

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/00/83/wKiom1mbmkuSWLKHAAAVjIUSJag897.png "title=" 1111. PNG "alt=" Wkiom1mbmkuswlkhaaavjiusjag897.png "/>

Step Two: Install RABBITMQ

1, decompression Rabbitmq-server-generic-unix-3.6.3.tar

[Email protected] tar]# TAR-XVF rabbitmq-server-generic-unix-3.6.3.tar-c/opt

2, enable the Web management interface, into the/opt/rabbitmq_server-3.6.3/sbin/

[Email protected] sbin]#/rabbitmq-plugins enable rabbitmq_management

3. Enable MQ to enter the/opt/rabbitmq_server-3.6.3/sbin/

[Email protected] sbin]#./rabbitmq-server-detached

4, add the user (here also can be added through the Web management interface, the following demo)

[[email protected] sbin]#./rabbitmqctl add_user Admin 111111

5. Set permissions for the user (also available through the Web management interface, shown below)

[Email protected] sbin]#/rabbitmqctl set_user_tags Admin Administrator

Description

A, the default listening port for RABBITMQ 5672

B, Web management interface Port 15672

C, the default user name password is: guest/guest

Test:

Access http://192.168.175.13:15672/, log in using a previously added user, admin/111111

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9F/46/wKioL1mbnyGgnTdKAAA0qbfONl8635.png "title=" 11. PNG "alt=" Wkiol1mbnyggntdkaaa0qbfonl8635.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/00/96/wKiom1mbn1qAUFOZAADdTtKS78E455.png "title=" 11. PNG "alt=" Wkiom1mbn1qaufozaaddttks78e455.png "/>

Step Three: Operation

1. Add users and passwords through the Web Administration page

A, select the admin option

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9F/57/wKioL1mbuSfgs2QkAACWsTytm9E389.png "title=" 11. PNG "alt=" Wkiol1mbusfgs2qkaacwstytm9e389.png "/>

B, in order to authorize the user access to VirtualHost "/", after the user has been added, the user needs to be authorized

Click User name:

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/00/A7/wKiom1mbuarRMygqAABiSm8kTNk175.png "title=" 11. PNG "alt=" Wkiom1mbuarrmygqaabism8ktnk175.png "/>

Click Set Permission:

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9F/57/wKioL1mbuf-SVcfFAAB1eSU3y_U499.png "title=" 11. PNG "alt=" Wkiol1mbuf-svcffaab1esu3y_u499.png "/>

Effect:

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9F/57/wKioL1mbujqRz_B1AABdzhX3o_g617.png "title=" 11. PNG "alt=" wkiol1mbujqrz_b1aabdzhx3o_g617.png "/> 650" this.width=650; "src=" https://s1.51cto.com/wyfs02/M01/0 0/a8/wkiom1mbunca01etaabdncolgy4016.png "title=" 11.png "alt=" Wkiom1mbunca01etaabdncolgy4016.png "/>



This article is from "I Love Big gold" blog, please be sure to keep this source http://1754966750.blog.51cto.com/7455444/1958262

Linux Learning: Installing RABBITMQ

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.