报错:Failed to start Apache ActiveMQ (localhost, ID:TeaR_Work_Cp-50147-1531367638117-0:1)
jvm 1 | java.net.URISyntaxException: Illegal character in hostname at index 9: ws://TeaR_Work_Cp:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
解决办法:
修改activemq.xml (在conf目录下)的以下内容:
<transportConnectors>
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>
中的0.0.0.0替换为相对应IP >> 127.0.0.1