1 apache-tomcat-6.0.29.tar.gz + jdk1.6.0.22
JDK的安装
vi /etc/profile
export JAVA_HOME=/usr/local/jdk
export JRE_HOME=/usr/local/jdk/jre
export CATALINA_HOME=/usr/local/tomcat
export CATALINA_BASE=/usr/local/tomcat
export PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH
export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export TOMCAT_HOME=/usr/local/tomcat
tar -zxvf jdkxxxxxx
rsync -av jdkxxxx /usr/local/jdk
Tomcat的安装
APR的安装
先安装openssl,apr,apr-devel:
yum install openssl openssl-devel apr apr-devel
/usr/local/tomcat/bin/tomcat-native.tar.gz
tar zxvf tomcat-native.tar.gz
cd tomcat-native
cd jni/native
./configure --prefix=/root/tomcat-native --with-apr=/usr/bin/apr-1-config
make && make install
cp /root/tomcat-native/lib/libct* /usr/lib/ (/usr/lib64)
/usr/local/tomcat/bin/shutdown.sh
/usr/local/tomcat/bin/startup.sh
cd /usr/local/tomcat/log/catalina.out
check the logs