一,下载Tomcat
二,复制安装文件到/usr/local/目录下面,在控制台console输入命令
将安装包解压至/usr/local/apache-tomcat-6.0.35目录下,
三,进入目录/usr/local/apache-tomcat-6.0.35/bin,修改该目录下的文件startup.sh
四,进入目录/usr/local/apache-tomcat-6.0.35/bin,执行该目录下的文件startup.sh
若出现
Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.35
Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.35
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.35/temp
Using JRE_HOME: /usr/lib/java/jdk1.7.0_06/jre
Using CLASSPATH: /usr/local/apache-tomcat-6.0.35/bin/bootstrap.jar
代码,则基本上正常启动了,输入http://IP地址:8080/查看,看看能否出现tomcat欢迎界面。
++++++++++++++++++++++++
Tomcat的启动 /usr/local/apache-tomcat-6.0.35/bin/startup.sh
Tomcat的关闭 /usr/local/apache-tomcat-6.0.35/bin/shutdown.sh
wget -c http://ftp.kddilabs.jp/infosystems/apache/tomcat/tomcat-6/v6.0.35/bin/apache-tomcat-6.0.35.tar.gz
二,复制安装文件到/usr/local/目录下面,在控制台console输入命令
sudo tar -zxvf apache-tomcat-6.0.35.tar.gz
将安装包解压至/usr/local/apache-tomcat-6.0.35目录下,
三,进入目录/usr/local/apache-tomcat-6.0.35/bin,修改该目录下的文件startup.sh
export JAVA_HOME=/usr/lib/java/jdk1.7.0_06
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib/
export PATH=${JAVA_HOME}/bin:$PATH
export TOMCAT_HOME=/usr/local/apache-tomcat-6.0.35
四,进入目录/usr/local/apache-tomcat-6.0.35/bin,执行该目录下的文件startup.sh
./startup.sh
若出现
Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.35
Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.35
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.35/temp
Using JRE_HOME: /usr/lib/java/jdk1.7.0_06/jre
Using CLASSPATH: /usr/local/apache-tomcat-6.0.35/bin/bootstrap.jar
代码,则基本上正常启动了,输入http://IP地址:8080/查看,看看能否出现tomcat欢迎界面。
++++++++++++++++++++++++
Tomcat的启动 /usr/local/apache-tomcat-6.0.35/bin/startup.sh
Tomcat的关闭 /usr/local/apache-tomcat-6.0.35/bin/shutdown.sh