安装 RabbitMQ
Author: WangYH
CentOS安装
安装依赖;由于RabbitMQ依赖与Erlong需要安装;
下载 Erlong-24.0.5 wget http://erlang.org/download/otp_src_24.0.tar.gz 下载 RabbitMQ-3.9.1 wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.9.1/rabbitmq-server-generic-unix-3.9.1.tar.xz
安装erlong
# 安装依赖
yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget gtk2-devel binutils-devel
# 解压 erlong
tar -zxvf otp_src_24.0.tar.gz
mv otp_src_24.0 /usr/local/
cd /usr/local/otp_src_24.0
# 创建安装目录,并安装
mkdir /usr/local/erlong
./configure --prefix=/usr/local/erlang # 配置安装目录
make install # 编译
# 查看是否安装成功
ls /usr/local/erlang/bin
# 配置环境变量
echo 'export PATH=$PATH:/usr/local/erlang/bin' >> /etc/profile
source /etc/profile
安装 RabbitMQ
# 下载 XZ
yum install -y xz
# 解压
xz -d rabbitmq-server-generic-unix-3.9.1.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.9.1.tar
mv rabbitmq_server-3.9.1/ /usr/local/
mv /usr/local/rabbitmq_server-3.9.1 /usr/local/rabbitmq
# 配置环境变量
echo 'export PATH=$PATH:/usr/local/rabbitmq/sbin' >> /etc/profile
source /etc/profile
|