标签:prope jdbc nts pac user 消息 opp start sys
[root@txylucky local]# tar -zxvf apache-activemq-5.15.8-bin.tar.gz
[root@txylucky local]# mv apache-activemq-5.15.8 activemq
[root@txylucky activemq]# cd conf/
[root@txylucky conf]# pwd
/usr/local/activemq/conf
[root@txylucky conf]# cp activemq.xml activemq.xml.bak
[root@txylucky conf]# vim activemq.xml
<persistenceAdapter>
<!--<kahaDB directory="${activemq.data}/kahadb"/>-->
<jdbcPersistenceAdapter dataSource="#mysql-ds"/>
</persistenceAdapter>
<bean id="mysql-ds" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://localhost:3306/test_mq?relaxAutoCommit=true"/>
<property name="username" value="root"/>
<property name="password" value="2018"/>
<property name="poolPreparedStatements" value="true"/>
</bean>
[root@txylucky conf]# cd ..
[root@txylucky activemq]# cd bin/linux-x86-64/
[root@txylucky linux-x86-64]# ./activemq restart
Stopping ActiveMQ Broker...
Stopped ActiveMQ Broker.
Starting ActiveMQ Broker...
[root@txylucky linux-x86-64]# systemctl stop firewalld
http://ip:8161/admin/
用户名和密码默认是:admin
标签:prope jdbc nts pac user 消息 opp start sys
原文地址:https://www.cnblogs.com/zhangkaimin/p/10669691.html