安装tomcat
chmod o+x jdk-6u43-linux-x64.bin
./jdk-6u43-linux-x64.bin
mv jdk1.6.0_43/ /usr/local/jdk
vi /etc/profile
JAVA_HOME="/usr/local/jdk"
CLASS_PATH="$JAVA_HOME/lib/:$JAVA_HOME/jre/lib"
CATALINA_HOME="/usr/local/tomcat"
PATH="$JAVA_HOME/bin/:$CATALINA_HOME/bin:$PATH"
export JAVA_HOME CATALINA_HOME PATH
tar -zxvf apache-tomcat-6.0.36.tar.gz
mv apache-tomcat-6.0.36 /usr/local/tomcat
cd /usr/local/tomcat/
cd bin/
tar -zxvf commons-daemon-native.tar.gz
cd commons-daemon-1.0.10-native-src/
cd unix/
./configure
make
cp jsvc ../../
管理tomcat服务
startup.sh
shutdown.sh
catalina.sh start|stop|run
阅读(3492) | 评论(0) | 转发(0) |