Solaris下安装Tomcat

2007-2-27 Jerry Solaris

Solaris版本:Sun OS 5.11 snv_50 i86pc i386
Tomcat版本:5.5.20

1. 下载Tomcat
Tomcat站点:http://tomcat.apache.org/
下载页面:http://tomcat.apache.org/download-55.cgi#5.5.20
找到Core下面的tar.gz
文件地址:http://apache.downlod.in/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.tar.gz

2. 解包Tomcat
# gunzip apache-tomcat-5.5.20.tar.gz
# tar -xvf apache-tomcat-5.5.20.tar

3. 更改Tomcat目录名,方便以后操作
# mv apache-tomcat-5.5.20 tomcat

4. 移动Tomcat到/usr/local下
# mv tomcat /usr/local/

5. 配置环境变量
编辑/etc/profile,在最后加入:
[code]JAVA_HOME=/usr/jdk/jdk1.5.0_08
export JAVA_HOME

CATALINA_BASE=/usr/local/tomcat
CATALINA_HOME=/usr/local/tomcat
PATH=$PATH:$CATALINA_HOME/bin
export CATALINA_BASE CATALINA_HOME PATH[/code]

6. 启动Tomcat
转到Tomcat的bin目录下:
# cd /usr/local/tomcat/bin
执行startup.sh脚本启动Tomcat:
# ./startup.sh

7. 测试
打开浏览器,访问:http://localhost:8080,出现Congratulations表示成功


发表评论:

Powered by emlog sitemap