将activemq注册成服务,开机自启。

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

 

posted @ 2019-10-15 14:36  我等你,你等风来  阅读(986)  评论(0编辑  收藏  举报