首页 > 代码库 > CentOS6.5上安装Rabbit Server

CentOS6.5上安装Rabbit Server

       按照“?>”命令执行命令即可,“#”都是注解。

#-----------centOS6.5  installs rabbitmq-server ---------------------

#Installation using repository

#1. Adding repository entry

#To add Erlang Solutions repository (including our public key forverifying signed package) to your system, call the following commands:

?>wgethttp://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

?>rpm -Uvherlang-solutions-1.0-1.noarch.rpm


#Alternatively: adding the repository entry manually

#RPM packages are signed. To add Erlang Solutions key, executecommand:

?>rpm --importhttp://packages.erlang-solutions.com/rpm/erlang_solutions.asc

#Add the following lines to some file in 

?> sudo vim /etc/yum.repos.d/{XXX}.repo:

[erlang-solutions]

name=Centos$releasever - $basearch - Erlang Solutions

baseurl=http://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch

gpgcheck=1

gpgkey=http://packages.erlang-solutions.com/rpm/erlang_solutions.asc

enabled=1

#Note that RPM Forge must be also added to repos.

#2. Installing Erlang

#Call the following command:

?> sudo yum install erlang

 

RabbitMQ3.3.5-1.noarch  download

**install RabbitMQ

?> sudo rpm -i rabbitmq-server-3.3.5-1.noarch.rpm

#it will be started when the sytem boots

?> chkconfig rabbitmq-server on

#start rabbitmq-server

?> service rabbitmq-server start


CentOS6.5上安装Rabbit Server