完整啟動順序:
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
---
#Startup MySQL
/usr/local/mysql/support-files/mysql.server start &

#Startup 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 &

#Startup Apache
/usr/local/apache/bin/apachectl -k start &

====================================================

vi all_stop.local
---

#Stop Apache
/usr/local/apache/bin/apachectl -k stop &

#Stop 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 &

#Stop MySQL
/usr/local/mysql/support-files/mysql.server stop &

創作者介紹

資訊理想化的延伸

hsinichi 發表在 痞客邦 PIXNET 留言(0) 人氣()