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