activemq设置自启动

(1)vi /opt/activemq/bin/activemq
#!/bin/sh
### BEGIN INIT INFO
# Provides:             activemq
# Required-Start:       $remote_fs $syslog
# Required-Stop:        $remote_fs $syslog
# Default-Start:        2 3 4 5
# Default-Stop:         0 6
# Short-Description:    ActiveMQ server
### END INIT INFO

(2)# ln -s /opt/activemq/bin/activemq /etc/init.d/
(3)vi /etc/rc.local
(4)添加bash /etc/init.d/activemq start
posted @ 2012-04-09 17:21  IT一族  阅读(1302)  评论(0编辑  收藏  举报