Ubuntu7.10下安装配置Tomcat

Ubuntu7.10下安装配置Tomcat的具体过程如下:

1.Apache官方网站提供下载最新的版本6.0.14

http://apache.mirror.phpchina.com/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.tar.gz

http://www.apache.org/dist/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.tar.gz.md5

http://www.apache.org/dist/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.tar.gz.asc

(Tomcat5.5版本对应sun-java5-jdk)

解压缩并copy到opt目录下

sudo tar zxvf ~/apache-tomcat-6.0.14.tar.gz

sudo cp -R apache-tomcat-6.0.14 /opt/apache-tomcat-6.0.14

2.环境变量:

sudo gedit ~/.bashrc

在文件的末尾,添加如下两行

export JAVA_HOME=/usr/lib/jvm/java-6-sun

export PATH=$PATH:$JAVA_HOME/bin

3.配置tomcat:

启动Eclipse,Window>>Perferences>>MyEclipse>>Application Servers>>Tomcat 6

选Enble和选择Tomcat6的安装目录/opt/apache-tomcat-6.0.14

相关推荐