安装rabbitmq

1. ERLANG
找到原安装目录:如/usr/lib/erlang
将该文件夹备份
mv -rf /usr/lib/erlang  /tmp/erlang_bak


http://www.erlang.org/download.html
下载SourceFIle
tar -xvf otp_src_R14B04.tar.gz

cd otp*

./configure --prefix=/usr

By default, Erlang/OTP will be installed in /usr/local/{bin,lib/erlang}.
To instead install in <BaseDir>/{bin,lib/erlang}, use the --prefix=<BaseDir> option.

make

make install

2.RABBITMQ
http://www.rabbitmq.com/download.html
下载SourceFIle(tar.gz)
cd rab*
make
--------------
Change to the rabbitmq-server directory, and type make.

Other interesting Makefile targets include

all
The default target. Builds the server.
run

Builds the server and starts an instance with an interactive Erlang shell.
This will by default create a Mnesia database in /tmp/rabbit-mnesia, but this location can be overridden by setting the Makefile variable MNESIA_DIR:
make run MNESIA_DIR=/some/other/location/for/rabbit-mnesia

clean
Removes build products and wipes the Mnesia database directory used by the run target. See the above description of MNESIA_DIR.

srcdist
Runs the "clean" target, and constructs a source-code distribution tarball in ./dist.

你可能感兴趣的:(rabbitmq)