The message bus AcitveMQ cannot be started and always prompts that the port is occupied
The tips are as follows:
2018-04-21 22:47:22,623 | ERROR | Failed to start Apache ActiveMQ ([localhost, ID:XXXX-1146-1524322042327-0:1], java.io.IOException: Transport Connector could not be registered in JMX: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use: JVM_Bind) | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
?
Solution:
After investigation, it was found that a Windows service occupied this port Internet Connection Sharing (ICS) to close this service.
Regarding this issue, it is quite helpless to use netstat -an to query the ports occupied by this process.
Different environments may occupy different programs. If you can't solve it, you can leave a message!
How to turn off the Internet Connection Sharing (ICS) service in win7
1. Start menu , run, enter services.msc, right-click the Windows Firewall/Internet Connection Sharing service item, and click "Start" (you need to change the startup type to manual or automatic to start).