1. 程式人生 > >win7安裝RabbitMQ

win7安裝RabbitMQ

1.3 scrip files .bat net read bat ads ocs

1、下載並安裝erlang

http://www.erlang.org/downloads

2、下載並安裝RabbitMQ

http://www.rabbitmq.com/install-windows.html

註意:將RabbitMQ安裝在erlang的lib文件夾下,不然會報錯!找不到路徑。

3、打開cmd,切換到RabbitMQ的sbin文件夾下,執行:

C:\Program Files\erl9.0\lib\rabbitmq_server-3.6.10\sbin>rabbitmqctl.bat stat
Status of node [email protected]
/* */ [{pid,20728}, {running_applications, [{rabbit,"RabbitMQ","3.6.10"}, {os_mon,"CPO CXC 138 46","2.4.2"}, {ranch,"Socket acceptor pool for TCP protocols.","1.3.0"}, {ssl,"Erlang/OTP SSL application","8.2"}, {public_key,"Public key infrastructure","1.4.1"}, {asn1,"The Erlang ASN1 compiler version 5.0","5.0"}, {mnesia,"MNESIA CXC 138 12","4.15"}, {crypto,"CRYPTO","4.0"}, {rabbit_common, "Modules shared by rabbitmq-server and rabbitmq-erlang-client", "3.6.10"}, {compiler,"ERTS CXC 138 10","7.1"}, {xmerl,"XML parser","1.3.15"}, {syntax_tools,"Syntax tools","2.1.2"}, {sasl,"SASL CXC 138 11","3.0.4"}, {stdlib,"ERTS CXC 138 10","3.4"}, {kernel,"ERTS CXC 138 10","5.3"}]}, {os,{win32,nt}}, {erlang_version, "Erlang/OTP 20 [erts-9.0] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads {memory, [{total,56711632}, {connection_readers,0}, {connection_writers,0}, {connection_channels,0}, {connection_other,0}, {queue_procs,2744}, {queue_slave_procs,0}, {plugins,0}, {other_proc,23833640}, {mnesia,61776}, {metrics,184984}, {mgmt_db,0}, {msg_index,44048}, {other_ets,1805664}, {binary,86464}, {code,21388830}, {atom,891849}, {other_system,8593809}]}, {alarms,[]}, {listeners,[{clustering,25672,"::"},{amqp,5672,"::"},{amqp,5672,"0.0.0.0"}] {vm_memory_high_watermark,0.4}, {vm_memory_limit,3403792384}, {disk_free_limit,50000000}, {disk_free,181096128512}, {file_descriptors, [{total_limit,8092}, {total_used,2}, {sockets_limit,7280}, {sockets_used,0}]}, {processes,[{limit,1048576},{used,175}]}, {run_queue,0}, {uptime,795}, {kernel,{net_ticktime,60}}]

4、安裝模塊pika

pip install pika

win7安裝RabbitMQ