rabbitMQキューインストール

3133 ワード

初心者の操作を容易にするために、私はまずみんなに1つのステップをあげて、それから中の仕事の原理を理解して、私はこのようにもっと速く近道を歩いて勉強することができると感じています.
ここで私はまずツッコミを入れて、ネット上で私は多くの文章を見たことがあって、内容は深くて浅いことがあって、私の愚かな午後私はやっとインストールが完成して、以下私はみんなにlinux環境の下でrabbitMQキューをインストールしてテストする例を紹介します
良い話を本題に戻すには、大体次の手順に従います.
1、まずerlangをインストールerlangをインストールするには以下の手順に従います.
コマンドを叩く前に、lunux仮想マシン環境を作成してテストする必要がある初心者もいます.作成後にyum(解析ツールと理解できます)というものをインストールします.yumコマンドをインストールするには、次のようにします.
[root@web-2 otp_src_R15B01]# yum install lrzsz     //    yum        ,        
[root@web-2 otp_src_R15B01]# wget http://erlang.org/download/otp_src_R15B01.tar.gz    //  
[root@web-2 otp_src_R15B01]# tar zxvf otp_src_R15B01.tar.gz    //  
[root@web-2 otp_src_R15B01]# cd otp_src_R15B01  //  
[root@web-2 otp_src_R15B01]# ./configure --prefix=/home/software/erlang //       

  
  
  
  
         
configure: error: No curses library functions found
configure: error: /bin/sh '/root/otp_src_R15B01/erts/configure' failed for erts
               
yum list|grep ncurses
yum -y install ncurses-devel

コンパイルしよう
[root@web-2 otp_src_R15B01]# ./configure --prefix=/home/software/erlang
[root@web-2 otp_src_R15B01]# make && make install
ここまで
Erlangのインストール
      
[root@web-2 otp_src_R15B01]# ln -s /home/software/erlang/bin/erl /usr/local/bin/erl
      erlang       
[root@web-2 otp_src_R15B01]# erl
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [async-threads:0] [hipe] [kernel-poll:false]
 
Eshell V5.9.1  (abort with ^G)
1> halt().
[root@web-2 otp_src_R15B01]# 
OK.    。

2、rabbitmqをインストールする
[root@web-2 ~]# wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.6/rabbitmq-server-generic-unix-2.8.6.tar.gz
[root@web-2 ~]# tar zxvf rabbitmq-server-generic-unix-2.8.6.tar.gz
[root@web-2 ~]# mv rabbitmq_server-2.8.6 /home/software/rabbitmq
rabbitmq
 rabbitmq    。    
[root@web-2 rabbitmq]# /home/software/rabbitmq/sbin/rabbitmq-server start
    start       erl: command not found                    erlang         
[root@localhost sbin]#  vim /etc/profile 
           
ERL_HOME=/usr/local/erlang    //       erlang         /home/software/erlang
PATH=$ERL_HOME/bin:$PATH
export ERL_HOME PATH
            rabbitmq 
/home/software/rabbitmq/sbin/rabbitmq-server start
OK  

サービスの
[root@web-2 rabbitmq]# /home/software/rabbitmq/sbin/rabbitmqctl stop
OKインストールプロセスはこれで わります