linux自启动配置
1、添加etc/rc.local内容
########Tianyi_startup_beg########
sh"/etc/ty.local"
########Tianyi_startup_end##############Tianyi_startup_beg########
2、新建ty.local文件到目录,内容如下
cd/home/centerser2.8/
./start
cd/home/AlarmServer/
./start.sh
cd/home/MsgServer/
./start.sh
JAVA_HOME=/usr/local/jdk1.6.0_06
exportJAVA_HOME
JBOSS_HOME=/usr/local/jboss-3.2.7
exportJBOSS_HOME
CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
exportCLASSPATH
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
exportPATH
TOMCAT_HOME=/usr/local/apache-tomcat-7.0.47
exportTOMCAT_HOME
Sleep300
cd/usr/local/memcached-1.4.15/
./memcached-d-uroot-m2048-l25.30.9.121-p1111
sleep30
cd/usr/local/jboss-3.2.7/bin
./run.sh-call
cd/usr/local/apache-tomcat-7.0.47/bin/
./startup.sh
########SipProxyServer_beg########
cd/home//SipProxyServer
./start.sh
########SipProxyServer_end########
########AlarmServer_beg########
cd/home//AlarmServer
./start.sh
########AlarmServer_end########
3、重启linux