ActiveMQ

下载并解压

1
2
cd  解压的activemq文件目录
tar -zxvf 文件名

启动服务

bin/activemq start

查看启动状态

bin/activemq status

停止服务

bin/activemq stop

查看运行状态

./activemq status

查看日志启动信息

./activemq console

修改web端口号

1
2
3
4
5
6
修改 jetty.xml
<bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
<!-- the default port number for the web console -->
<property name="host" value="0.0.0.0"/>
<property name="port" value="8161"/>
</bean>

修改服务端口号

1
2
3
4
5
6
7
8
9
修改activemq.xml,端口冲突服务无法启动
<transportConnectors>
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
<transportConnector name="openwire" uri="tcp://0.0.0.0:30451?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
<!--<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>-->
</transportConnectors>

修改用户名密码

修改 jetty-realm.properties 文件

文章作者: 柯熠
文章链接: https://smallkserver.github.io/2020/12/14/activeMQ/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Smallkserver
打赏
  • 微信
  • 支付宝

评论