1、环境
linux Centeros 6.x;
RabbitMQ需要erlang语言的支持,因此需要先安装erlang语言;
2、下载
1)erlang下载:http://www.erlang.org/download/otp_src_18.0.tar.gz
2)simplejson下载:https://pypi.python.org/packages/source/s/simplejson/simplejson-3.8.0.tar.gz
3)RabbitMQ下载:http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.4/rabbitmq-server-generic-unix-3.5.4.tar.gz
3、安装
1)安装erlang
$ tar -xvzf otp_src_18.0.tar.gz
$ cd otp_src_18.0
$ ./configure
$ make
$ sudo make install
2)安装simplejson(python)
$ tar -xvzf simplejson-3.8.0.tar.gz
$ cd simplejson-3.8.0
$ ./python setup.py install
3)安装RabbitMQ
$ tar -xvzf rabbitmq-server-generic-unix-3.5.4.tar.gz
$ cd rabbitmq_server-3.5.4
$ ./make
$ /usr/local/rabbitmq_server-3.5.4/sbin/rabbitmq-server –detached
停止:/usr/local/rabbitmq_server-3.5.4/sbin/rabbitmqctl stop
启动可能会遇到 ./rabbitmq-server: line 86: erl: command not found
修改rabbitmq_server-3.3.4/sbin/rabbitmq-server-3.3.4文件 将 export PATH=$PATH:/usr/erlang/bin配置上即可