|软件|版本|
|-|-|
|RHEL |7 update3|
|Erlong|19.3|
|rabbitMQ|3.6.10|html
rabbitMQ是使用erlang这种编程语言开发的,因此安装rabbitMQ的前提是安装Erlong语言。此次全都是离线安装,以便在远离internet的生产环境部署。java
|编译报错|解决办法|下载网址|
|-|-|-|
|crypto : No usable OpenSSL found |yum install openssl openssl-devel|rhel7.3光盘自带,创建本地源|
|jinterface : No Java compiler found| rpm -ivh jdk-8u144-linux-x64.rpm|http://www.oracle.com/technet...
|odbc : ODBC library - link check failed| rpm -ivh unixODBC-2.3.1-11.el7.x86_64.rpm unixODBC-devel-2.3.1-11.el7.x86_64.rpm|ftp://195.220.108.108/linux/centos/7.3.1611/os/x86_64/Packages/unixODBC-2.3.1-11.el7.x86_64.rpm ftp://195.220.108.108/linux/centos/7.3.1611/os/x86_64/Packages/unixODBC-devel-2.3.1-11.el7.x86_64.rpm|
|ssh : No usable OpenSSL found|yum install openssl openssl-devel|rhel7.3光盘自带,创建本地源|
|ssl : No usable OpenSSL found|yum install openssl openssl-devel|rhel7.3光盘自带,创建本地源|node
编译Erlong还须要安装ncurses,也是rhel7.3光盘自带。以及fop(生成文档用),centos7光盘有,rhel7光盘中没有。python
yum install fop yum install ncurses-devel ncurses yum install openssl openssl-devel rpm -ivh unixODBC-2.3.1-11.el7.x86_64.rpm unixODBC-devel-2.3.1-11.el7.x86_64.rpm rpm -ivh jdk-8u144-linux-x64.rpm
下载网址 http://erlang.org/download/
对应的版本自选,我选择的是 19.3版本
即 http://erlang.org/download/ot...linux
cd /tmp wget http://erlang.org/download/otp_src_19.3.tar.gz tar -zxvf otp_src_19.3.tar.gz cd otp_src_19.3 ./configure -prefix=/usr/local/erlang make make install cd /usr/local/erlang cd bin ln -s /usr/local/erlang/bin/erl /usr/local/bin/erl
erl -v
下载连接
http://www.rabbitmq.com/relea...git
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-generic-unix-3.6.10.tar.xz tar -Jxvf rabbitmq-server-generic-unix-3.6.10.tar.xz tar -xvf rabbitmq-server-generic-unix-3.6.10.tar cp -R rabbitmq_server-3.6.10/ /usr/local/rabbitmq/ chmod -R 755 /usr/local/rabbitmq/sbin
cd /usr/local/rabbitmq/sbin ./rabbitmq-server
cd /usr/local/rabbitmq/sbin ./rabbitmq-plugins enable rabbitmq_management
cd /usr/local/rabbitmq/sbin ./rabbitmqctl stop ## 停应用 ./rabbitmq-server ## 启动应用
访问http://localhost:15672
默认用户/密码 : guest/guest
注意初始状态只能本地登陆,不可经过远程web访问,给权限也不行。须要远程访问的,必须新建用户并赋权限。github
cd /usr/local/rabbitmq/sbin ./rabbitmqctl add_user mqadmin mqadmin
./rabbitmqctl set_user_tags mqadmin administrator
./rabbitmqctl set_permissions -p / mqadmin '.*' '.*' '.*'
在浏览器中输入:http://ip:15672 如:http://192.168.137.200:15672/便可
输入新添加的用户名和密码登陆web
|端口|说明|
|-|-|
|4369| epmd, a peer discovery service used by RabbitMQ nodes and CLI tools|
|5672, 5671| used by AMQP 0-9-1 and 1.0 clients without and with TLS|
|25672| used by Erlang distribution for inter-node and CLI tools communication and is allocated from a dynamic range (limited to a single port by default, computed as AMQP port + 20000). See networking guide for details.|
|15672| HTTP API clients and rabbitmqadmin (only if the management plugin is enabled)|
|61613, 61614| STOMP clients without and with TLS (only if the STOMP plugin is enabled)|
|1883, 8883| (MQTT clients without and with TLS, if the MQTT plugin is enabled|
|15674| STOMP-over-WebSockets clients (only if the Web STOMP plugin is enabled)|
|15675| MQTT-over-WebSockets clients (only if the Web MQTT plugin is enabled)|编程
基于anaconda环境,下载pika离线包
https://anaconda.org/conda-fo...ubuntu
cd /tmp wget https://anaconda.org/conda-forge/pika/0.10.0/download/linux-64/pika-0.10.0-py36_0.tar.bz2 conda install pika-0.10.0-py36_0.tar.bz2 conda list | grep pika ##检查
综上,一个基本的开源MQ环境搭建完成,最重要的是离线安装脱离了internet的捆绑。
http://erlang.org/doc/install...
https://sites.google.com/site...
https://www.rabbitmq.com/netw...
https://github.com/linux-on-i...
https://gist.github.com/craig...
http://blog.csdn.net/amuseme_...