1、下载tomcat:apache-tomcat-7.0.52.tar
2、通过SecureFX传送到虚拟机
3、解压至opt根目录下:tar xf apache-tomcat-7.0.52.tar -C /opt
4、安装jdk(详见 rpm.bin 与bin 文件的区别--->修改)
5、运行tomcat
6、检查tomcat是否启动
a、查看进程
http://localhost:8080
安装tomcat成功!
2、通过SecureFX传送到虚拟机
3、解压至opt根目录下:tar xf apache-tomcat-7.0.52.tar -C /opt
4、安装jdk(详见 rpm.bin 与bin 文件的区别--->修改)
5、运行tomcat
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /opt/apache-tomcat-7.0.52
Using CATALINA_HOME: /opt/apache-tomcat-7.0.52
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.52/temp
Using JRE_HOME: /usr
Using CLASSPATH: /opt/apache-tomcat-7.0.52/bin/bootstrap.jar:/opt/apache-tomcat-7.0.52/bin/tomcat-juli.jar
Tomcat started.
6、检查tomcat是否启动
a、查看进程
[root@localhost bin]# ps -ef|grep java
root 7138 1 1 11:04 pts/0 00:00:02 /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-7.0.52/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/apache-tomcat-7.0.52/endorsed -classpath /opt/apache-tomcat-7.0.52/bin/bootstrap.jar:/opt/apache-tomcat-7.0.52/bin/tomcat-juli.jar -Dcatalina.base=/opt/apache-tomcat-7.0.52 -Dcatalina.home=/opt/apache-tomcat-7.0.52 -Djava.io.tmpdir=/opt/apache-tomcat-7.0.52/temp org.apache.catalina.startup.Bootstrap start
root 7182 6672 0 11:06 pts/0 00:00:00 grep java
b、访问tomcat首页
http://localhost:8080
安装tomcat成功!