消息总线AcitveMQ无法启动,总是提示端口被占用
提示如下:
2012-08-29 11:14:49,229 | ERROR | Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.BindException:
Address already in use: JVM_Bind | org.apache.activemq.broker.BrokerService | main
java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.BindException: Address already in use: JVM_Bind
java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.BindException: Address already in use: JVM_Bind
解决方法:
经过非常辛苦的排查发现,我们发现Windows的一个服务占用了这个端口Internet Connection Sharing (ICS)把这个服务关闭即可
关于这个问题也挺无奈的使用netstat -an也查询不到这个进程占用的端口。
环境不同可能占用的程序也不同,如果不能解决,可以留言!
转载于:https://blog.51cto.com/bobzy/976186