发布于 2015-11-07 14:51:01 | 199 次阅读 | 评论: 0 | 来源: PHPERZ
这里有新鲜出炉的RabbitMQ 能为你做些什么?,程序狗速度看过来!
RabbitMQ 开源消息队列系统
RabbitMQ 是由 LShift 提供的一个 Advanced Message Queuing Protocol (AMQP) 的开源实现,由以高性能、健壮以及可伸缩性出名的 Erlang 写成,因此也是继承了这些优点。
需要3个文件
otp_src_17.3.tar.gz
simplejson-3.6.4.tar.gz
rabbitmq-server-generic-unix-3.3.5.tar.gz
安装erlang
tar -zxvf otp_src_17.3.tar.gz
cd otp_src_17.3/
./configure
备注:
1.[无碍]
configure: WARNING:
wxWidgets must be installed on your system.
Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs' command)
is in LD_LIBRARY_PATH or equivalent variable and
wxWidgets version is 2.8.4 or above.
2.configure: error: No curses library functions found
configure: error: /bin/bash '/opt/software/otp_src_17.3/erts/configure' failed for erts
解决:apt-cache search ncurses
apt-get install libncurses5-dev
make
make install
安装simplejson
tar -zxvf simplejson-3.6.4.tar.gz
cd simplejson-3.6.4
python setup.py install
安装rabbitmq-server
tar -zxvf rabbitmq-server-generic-unix-3.3.5.tar.gz
cd rabbitmq_server-3.3.5/etc/rabbitmq
touch rabbitmq.config
vim rabbitmq.config
添加内容:
[{rabbit, [{loopback_users, []}]}].
启动:
cd rabbitmq_server-3.3.5/sbin
启用监控台web:
./rabbitmq-plugins enable rabbitmq_management
启动
./rabbitmq-server
外网访问:
http://sunhao-java.vicp.cc:15672
制作开机启动
vim /etc/rc.local
最后exit 0之前加上:
#start rabbitMq
/opt/rabbitmq_server-3.3.5/sbin/rabbitmq-server -detached > /opt/logs/rabbitmq.log