第一步下载
http://activemq.apache.org/activemq-5157-release.html
tar -zxvf apache-activemq-5.15.7-bin.tar.gz\
cd apache-activemq-5.15.7
./activemq start
查看端口
Netstat –ln
有8161和61616端口号,
第二步建立activemq服务
cp activemq /etc/init.d/
chmod +x /etc/init.d/activemq
chkconfig --add activemq
chkconfig --list
修改启动文件
添加两个变量
export JAVA_HOME=/usr/local/jdk1.8.0_192
export ACTIVEMQ_HOME=/usr/local/apache-activemq-5.15.7
service activemq start
service activemq stop
service activemq status
修改端口号
Cd /usr/local/apache-activemq-5.15.7/conf
部署端口
vi activemq.xml
修改管理页面的8161端口
vi jetty.xml