rabbitMQ 踩坑
Erlang 和 rabbitMQ 的版本都是一致的没有什么问题,但是启动的时候却报错
错误信息如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| D:\software\rabbitmq_server-3.8.3>rabbitmq-server start
## ## RabbitMQ 3.8.3 ## ## ########## Copyright (c) 2007-2020 Pivotal Software, Inc. ###### ## ########## Licensed under the MPL 1.1. Website: https://rabbitmq.com
Doc guides: https://rabbitmq.com/documentation.html Support: https://rabbitmq.com/contact.html Tutorials: https://rabbitmq.com/getstarted.html Monitoring: https://rabbitmq.com/monitoring.html
Logs: C:/Users/Lengff/AppData/Roaming/RabbitMQ/log/rabbit@Lengff.log C:/Users/Lengff/AppData/Roaming/RabbitMQ/log/rabbit@Lengff_upgrade.log
Config file(s): (none)
Starting broker...{"Kernel pid terminated",application_controller,"{application_start_failure,rabbit,{{could_not_start_listener,\"::\",5672,eacces},{rabbit,start,[normal,[]]}}}"} Kernel pid terminated (application_controller) ({application_start_failure,rabbit,{{could_not_start_listener,"::",5672,eacces},{rabbit,start,[normal,[]]}}})
Crash dump is being written to: C:\Users\Lengff\AppData\Roaming\RabbitMQ\log\erl_crash.dump...done
|
折腾了很久都没有找到原因,最后看一下日志情况发现可能是端口占用,所以就检查了一下端口情况,果然端口被占用了
1 2 3 4 5 6
| D:\software\rabbitmq_server-3.8.3>netstat -ano |findstr 5672 TCP 0.0.0.0:5672 0.0.0.0:0 LISTENING 10936 TCP [::]:5672 [::]:0 LISTENING 10936 D:\software\rabbitmq_server-3.8.3>tasklist | findstr 10936 java.exe 10936 Services 0 47,156 K
|
发现是java.exe占用,所以就百度情况,最后发现是我安装了一个ActiveMQ,占用了5672端口
解决方法
停止ActiveMQ 服务即可