centos6.5 rabbitmqのインストール


インストールerlang
1、公式サイトにアクセスして住所をダウンロードする
https://www.erlang-solutions.com/resources/download.html
最新のインストールパッケージをダウンロード
 
    
  1. wget https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_19.1.5~centos~6_amd64.rpm
  2. rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
 
    
  1. warning: esl-erlang_19.1.5~centos~6_amd64.rpm: Header V4 RSA/SHA1 Signature, key ID a14f4
  2. error: Failed dependencies:
  3. libGL.so.1()(64bit) is needed by esl-erlang-19.1.5-1.x86_64
  4. libGLU.so.1()(64bit) is needed by esl-erlang-19.1.5-1.x86_64
  5. libodbc.so.2()(64bit) is needed by esl-erlang-19.1.5-1.x86_64
  6. libsctp.so.1()(64bit) is needed by esl-erlang-19.1.5-1.x86_64
  7. ......
, , , :
 
   
 
    
  1. rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
  2. vi /etc/yum.repos.d/xxx
 
   
 
    
  1. [erlang-solutions]
  2. name=Centos $releasever - $basearch - Erlang Solutions
  3. baseurl=https://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch
  4. gpgcheck=1
  5. gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
  6. enabled=1
yum makecache
 
   
 
    
  1. yum makecache
erlang
 
     
  1. yum -y install erlang
 
     
  1. [root@study2 soft]# erl
  2. Erlang/OTP 19 [erts-8.1] [source-77fb4f8] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
  3. Eshell V8.1 (abort with ^G)
  4. 1>


rabbitmq

https://www.rabbitmq.com/install-rpm.html

 
     
  1. wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el6.noarch.rpm
  2. rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
  3.  yum -y install rabbitmq-server-3.6.6-1.el6.noarch.rpm

 
       
  1. ,RabbitMQ 。 , :
  2. rabbitmq-env.conf ;
  3. rabbitmq.config;
  4. , , 。
 
      
  1. rabbitmq-env.conf
  2. , :/etc/rabbitmq ( )。
  3. RabbitMQ , :
  4. #RABBITMQ_NODE_PORT=    //
  5. #HOSTNAME=
  6. RABBITMQ_NODENAME=mq
  7. RABBITMQ_CONFIG_FILE=        //
  8. RABBITMQ_MNESIA_BASE=/rabbitmq/data        // MNESIA
  9. RABBITMQ_LOG_BASE=/rabbitmq/log        //log
  10. RABBITMQ_PLUGINS_DIR=/rabbitmq/plugins    //
  11. http://www.rabbitmq.com/configure.html#define-environment-variables
 
      
  1. rabbitmq.config
  2. erlangerlang
  3. rabbitmq-env.conf
  4. rpm
  5. /usr/share/doc/rabbitmq-server/ or /usr/share/doc/rabbitmq-server-3.x.x/
  6.   :
  7. [root@study2 rabbitmq-server-3.2.3]# cp rabbitmq.config.example /etc/rabbitmq/rabbitmq.config
  8. http://www.rabbitmq.com/configure.html#config-item