1.将环境境',window,'dialogWidth=1024px;dialogHeight=600px;');">环环境境包拷贝到/usr/local目录下安装
[root@localhost share]# cp apache-tomcat-5.5.27.tar.gz /usr/local
[root@localhost local]# tar -zxvf apache-tomcat-5.5.27.tar.gz
2.为解压后得到的apache-tomcat-5.5.27创建一个名为tomcat的同步目录。
[root@localhost local]# ln -s apache-tomcat-5.5.27 tomcat
3.设置环境变量CATALINA_HOME,并验证
[root@localhost local]# vi /etc/profile
在文件最后加入如下两行
CATALINA_HOME=/usr/local/tomcat
export CATALINA_HOME
保存退出
重启linux
启动后,验证CATALINA_HOME:
[root@localhost local]# echo $CATALINA_HOME
/usr/local/tomcat
4.启动并测试环境结果
[root@localhost local]# cd ./tomcat/bin
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/java/jdk
打开浏览器,敲入主机地址和端口号8080,回车如: