一、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