1,安装Jdk
2,在终端中使用命令:sudo nautilus,进入root权限,将tomcat解压缩到/usr/local目录下
4,在终端中使用命令: gedit ~/.bashrc,在文件末尾加入下面几行:
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/
export CLASSPATH=/usr/local/tomcat6/lib/jsp-api.jar:/usr/local/tomcat6/lib/servlet-api.jar
5,重启机器让上述设置生效,在终端中进入到/usr/local/tomcat6/bin目录下,输入:sh startup.sh
如果出现下述信息,就说明OK了:
Using CATALINA_BASE: /usr/local/tomcat6
Using CATALINA_HOME: /usr/local/tomcat6
Using CATALINA_TMPDIR: /usr/local/tomcat6/temp
Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun
6,firefox中输入http://localhost:8080/进行验证
本文转自Phinecos(洞庭散人)博客园博客,原文链接:http://www.cnblogs.com/phinecos/archive/2007/10/29/940894.html,如需转载请自行联系原作者