1.建立软连接
# ln -s /usr/local/activemq/bin/activemq /etc/init.d/
2.注册为系统服务
# vi /etc/init.d/activemq
3.开启开机自启
# chkconfig activemq on
# reboot 重启
4.可以以系统服务的方式启动、查看状态和停止服务
# service activemq start
# service activemq status
# service activemq stop
5.查看注册的服务
# chkconfig --list