1. 网页不能访问:(网上说如果安装ok可以用这个来测试,但是我打不开)
测试地址 http://localhost:15672/
默认的用户名:guest
默认的密码为:guest
2. 又在网上找说是安装 好了可以用 rabbitmqctl status 看状态,还就是Ok的。
但是我的是以下错误 :
C:\RabbitMq\rabbitmq_server-3.7.17\sbin>rabbitmqctl status
Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.
Arguments given:
status
[1mUsage[0m
rabbitmqctl [--node
再次尝试按提示的命令也报错:
C:\RabbitMq\rabbitmq_server-3.7.17\sbin>rabbitmqctl start_app
Starting node rabbit@dellOfYubo ...
Error:
stop
3. 在网上查了好久,把rabbit 也重新安装了几次,说不能在Path路径中有空格,还是不行。
4.最后没有法了,尝试找到rabbitmq的日志。
C:\Users\Administrator\AppData\Roaming\RabbitMQ\log\log
打开发现:
2019-09-04 23:41:52 =CRASH REPORT====
crasher:
initial call: application_master:init/4
pid: <0.212.0>
registered_name: []
exception exit: {{{erlang_version_too_old,"Erlang 20.3 or later is required, started on 20.2"},{rabbit,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,134}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
ancestors: [<0.211.0>]
message_queue_len: 1
messages: [{'EXIT',<0.213.0>,normal}]
links: [<0.211.0>,<0.33.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 987
stack_size: 27
reductions: 184
neighbours:
这尼马就是网上提供的版本不对,太老了。
5. 找更新的erlang安装后。
https://www.erlang.org/downloads 可以右键copy 用讯雷下载
再用rabbitmqctl status 打印如下:
D:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.17\sbin>rabbitmqctl status
Status of node rabbit@dellOfYubo ...
[{pid,7656},
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.7.17"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.7.17"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.7.17"},
{rabbit,"RabbitMQ","3.7.17"},
{mnesia,"MNESIA CXC 138 12","4.16"},
{amqp_client,"RabbitMQ AMQP Client","3.7.17"},
{rabbit_common,
"Modules shared by rabbitmq-server and rabbitmq-erlang-client",
"3.7.17"},
{cowboy,"Small, fast, modern HTTP server.","2.6.1"},
{ranch,"Socket acceptor pool for TCP protocols.","1.7.1"},
{ssl,"Erlang/OTP SSL application","9.3"},
{public_key,"Public key infrastructure","1.6.7"},
{asn1,"The Erlang ASN1 compiler version 5.0.9","5.0.9"},
{observer_cli,"Visualize Erlang Nodes On The Command Line","1.5.0"},
{recon,"Diagnostic tools for production use","2.5.0"},
{sysmon_handler,"Rate-limiting system_monitor event handler","1.1.0"},
{os_mon,"CPO CXC 138 46","2.5"},
{stdout_formatter,
"Tools to format paragraphs, lists and tables as plain text",
"0.2.2"},
{inets,"INETS CXC 138 49","7.0.8"},
{cowlib,"Support library for manipulating Web protocols.","2.7.0"},
{crypto,"CRYPTO","4.5"},
{jsx,"a streaming, evented json parsing toolkit","2.9.0"},
{xmerl,"XML parser","1.3.21"},
{lager,"Erlang logging framework","3.6.10"},
{goldrush,"Erlang event stream processor","0.1.9"},
{compiler,"ERTS CXC 138 10","7.4"},
{syntax_tools,"Syntax tools","2.2"},
{sasl,"SASL CXC 138 11","3.4"},
{stdlib,"ERTS CXC 138 10","3.9"},
{kernel,"ERTS CXC 138 10","6.4"}]},
{os,{win32,nt}},
{erlang_version,
"Erlang/OTP 22 [erts-10.4] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:64]\n"},
{memory,
[{connection_readers,0},
6. 用网址测试:
Ok.