一、oracle 11g r2自启动
1、修改/etc/sysconfig/oracle文件:
ORACLE_BASE=/oracle //此处改为你安装的oracle目录
START_ORACLE_DB="no" no改为"yes"
START_ORACLE_DB_LISTENER="no" no改为"yes"
2、修改/etc/oratab文件:
ora11gr2:/oracle/11gr2:N N改为Y
二、tomcat自启动
修改/etc/init.d/boot.local,最后加入以下两行:
#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved.
#
# Author: Werner Fink, 1996
# Burchard Steinbild, 1996
#
# /etc/init.d/boot.local
#
# script with local commands to be executed from init on system startup
#
# Here you should add things, that should happen directly after booting
# before we‘re going to the first run level.
#
export JAVA_HOME=/usr/java/jdk1.6.0_43 //换成你的JDK路径
/java/apache-tomcat-6.0.36/bin/startup.sh //换成你的tomcat路径
原文:http://www.cnblogs.com/101key/p/8012131.html