Linux下ActiveMQ安装笔记

ActiveMQ 5需要jdk1.8的支持,首先需要安装jkd1.8,安装过程省略。。。然后解压apache-activemq-5.15.10-bin.tar.gz

cd /opt/apache-activemq-5.15.10/bin #进入到解压后的目录
./activemq start #执行启动脚本

#指定其他配置文件启动
#/opt/apache-activemq-5.15.10 是activemq的安装目录
#./activemq start 默认就是加载conf/activemq.xml
#./activemq start xbean:file:/opt/apache-activemq-5.15.10/conf/activemq.xml

./activemq restart #重启服务
./activemq stop #停止服务
./activemq status #查看状态
./activemq start > /opt/activemq.log #带日志的启动方式,日志将会写入到自定义的activemq.log中

管理控制台访问地址:http://192.168.1.3:8161/  默认登录用户admin/admin,修改方法如下

#管理台web容器为jetty,所以找到jetty-realm.properties
vim /opt/apache-activemq-5.15.10/conf/jetty-realm.properties

修改端口号,vim /opt/apache-activemq-5.15.10/conf/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>

最后请确保防火墙开放61616、8161,不然远程客户端将无法访问

发布了64 篇原创文章 · 获赞 0 · 访问量 3220

猜你喜欢

转载自blog.csdn.net/q42368773/article/details/102733273