vim /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
#java_home
export JAVA_HOME=/opt/java/jdk1.7.0_67
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
export CATALINA_HOME=/root/software/dubbo-admin-tomcat
# zookeeper
/root/software/zookeeper-3.4.6/bin/zkServer.sh start
# 启动部署了dubbo控制台的tomcat
/root/software/dubbo-admin-tomcat/bin/startup.sh
su - root -c '/root/software/activemq-01/bin/activemq start'