完整啟動順序:
1) 啟動 MySQL:
/usr/local/mysql/support-files/mysql.server start
2) 啟動 tomcat:
export CATALINA_HOME=/usr/local/tomcat
export JAVA_HOME=/usr/java/jdk1.5.0_10 ( 自訂:視版本而定喔!)
export CLASSPATH=/usr/local/tomcat/common/lib/servlet.jar
$CATALINA_HOME/bin/startup.sh &
3) 啟動 Apache:
/usr/local/apache/bin/apachectl -k start
====================================================
完整關閉順序:
1) 關閉 MySQL:
/usr/local/mysql/support-files/mysql.server stop
2) 關閉 tomcat:
export CATALINA_HOME=/usr/local/tomcat
export JAVA_HOME=/usr/java/jdk1.5.0_10 ( 自訂:視版本而定喔!)
export CLASSPATH=/usr/local/tomcat/common/lib/servlet.jar
$CATALINA_HOME/bin/shutdown.sh &
3) 關閉 Apache:
/usr/local/apache/bin/apachectl -k stop
====================================================
vi all_start.local