1. 程式人生 > >RabbitMQ學習(一)-RabbitMQ安裝

RabbitMQ學習(一)-RabbitMQ安裝

一、rabbitmq安裝過程:

cd ~/Downloads/
mkdir rabbitmq
cd rabbitmq/
wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.7.0/rabbitmq-server-generic-unix-2.7.0.tar.gz
tar -vxzf ./rabbitmq-server-generic-unix-2.7.0.tar.gz 
cd rabbitmq/rabbitmq_server-2.7.0/
mkdir -p /var/log/rabbitmq
mkdir -p /var/lib/rabbitmq/mnesia/rabbit
#去erlang官網下載最新版本的erlang:
tar -vxzf ./otp_src_18.3.tar.gz 
cd otp_src_18.3
./configure --prefix=/usr/local/erlang --enable-hipe --enable-threads --enable-smp-support --enable-kernel-poll
make;make install
vim /etc/profile 
在PATH=最後加上:/usr/local/erlang/bin:/root/Downloads/rabbitmq/rabbitmq_server-2.7.0/sbin
source /etc/profile
rabbitmq-server 
二、執行:

1.rabbitmq-server:


2.再開一個新終端:

rabbitmqctl status