Linux 中部署 ActiveMQ

PPG007 ... 2021-12-27 Less than 1 minute

# Linux 中部署 ActiveMQ

# 安装并启动 ActiveMQ

下载对应压缩包:

ActiveMQ (opens new window)

在 Linux 中解压并进入解压后的目录,进入其中的 bin 文件夹(首先需要安装 Java 环境):

#启动
./activemq start
#重启
./activemq restart
#停止
./activemq stop
#查看状态
./activemq status
1
2
3
4
5
6
7
8

后台进程默认端口:61616

控制台默认端口:8161,用户名:admin,密码:admin

# 控制台访问

修改 conf 文件夹中的 jetty.xml,注释掉 127.0.0.1 才能使用公网访问:

<bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
    <!-- the default port number for the web console -->
    <!--
    <property name="host" value="127.0.0.1"/>
	-->
    <property name="port" value="8161"/>
</bean>
1
2
3
4
5
6
7
Last update: December 27, 2021 03:30
Contributors: PPG007