安装rabbitmq

本文详细介绍了ERLANG的安装与备份过程,包括下载源代码、配置及安装步骤;接着深入讲解了RABBITMQ的下载、安装与配置方法,包括构建服务器、运行实例并设置Mnesia数据库等关键操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值