1./etc/environemnt:配置环境变量
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/tomcat/bin:/usr/local/jdk/bin"
JAVA_HOME=/usr/local/jdk
JRE_HOME=/usr/local/jdk/jre
CLASSPATH=".:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH"
_JAVA_SR_SIGNUM="12" (java环境)

2./etc/rc.local:设置开机自启动项
export JAVA_HOME=/usr/local/jdk
/usr/local/james/bin/run.sh (启动james服务器 )
/usr/local/jakarta-tomcat-5.0.28/bin/startup.sh (启动tomcat)

3./etc/init.d/ : 放置启动,关机有关的shell脚本
networking restart(重启网卡)

4./etc/apache2/apache2.conf:apache相关配置
JkWorkersFile /etc/libapache2-mod-jk/workers.properties(配置apache+tomcat联合工作的文件)