Tomcat绿色版版本安装
apache-tomcat-6.0.45.zip【到Apache网站下载】
jdk-6u45-linux-x64.bin 【到JAVA的网站下载】
使用于linux平台,windows平台方法类似。
将jdk上传到opt目录,给jdk赋权限
#chmod –R 777 jdk-6u45-linux-x64.bin
inflating: jdk1.6.0_45/db/lib/derbynet.jar
inflating: jdk1.6.0_45/db/lib/derbyrun.jar
inflating: jdk1.6.0_45/db/lib/derbytools.jar
inflating: jdk1.6.0_45/db/lib/register.jar
inflating: jdk1.6.0_45/db/register.html
Creating jdk1.6.0_45/jre/lib/rt.jar
Creating jdk1.6.0_45/jre/lib/jsse.jar
Creating jdk1.6.0_45/jre/lib/charsets.jar
Creating jdk1.6.0_45/lib/tools.jar
Creatingjdk1.6.0_45/jre/lib/ext/localedata.jar
Creating jdk1.6.0_45/jre/lib/plugin.jar
Creating jdk1.6.0_45/jre/lib/javaws.jar
Creating jdk1.6.0_45/jre/lib/deploy.jar
Done.
上传tomcat文件解压。
#unzip apache-tomcat-6.0.45.zip
#mv apache-tomcat-6.0.45tomcat
对解压完的目录进行授权,并修改tomcat的启动脚本。
[root@SMSSRVopt]# chmod -R 777 tomcat
[root@SMSSRV opt]# chmod -R 777 jdk1.6.0_45/
[root@SMSSRVopt]#cd tomcat
[root@SMSSRVopt]# vi bin/startup.sh
在第一行添加
export JAVA_HOME=/opt/jdk1.6.0_45