作者:聂勇 欢迎转载,请保留作者信息并说明文章来源!
预备
- SUSE LINUX Enterprise Server 9
- apache-tomcat-6.0.18.tar.gz
- JDK6 (必须已经安装)
安装
1、解压。
2、准备。
total 61
drwxr-xr-x 2 aofeng users 1024 2008-11-19 09:58 bin
drwxr-xr-x 2 aofeng users 512 2008-07-22 08:01 conf
drwxr-xr-x 2 aofeng users 512 2008-11-19 09:58 lib
-rw-r–r– 1 aofeng users 37951 2008-07-22 08:01 LICENSE
drwxr-xr-x 2 aofeng users 512 2008-07-22 08:01 logs
-rw-r–r– 1 aofeng users 556 2008-07-22 08:01 NOTICE
-rw-r–r– 1 aofeng users 7317 2008-07-22 08:01 RELEASE-NOTES
-rw-r–r– 1 aofeng users 6587 2008-07-22 08:01 RUNNING.txt
drwxr-xr-x 2 aofeng users 512 2008-11-19 09:58 temp
drwxr-xr-x 7 aofeng users 512 2008-07-22 08:01 webapps
drwxr-xr-x 2 aofeng users 512 2008-07-22 08:01 work
3、启动。
Using CATALINA_BASE: /nfs10/aofeng/apache-tomcat-6.0.18
Using CATALINA_HOME: /nfs10/aofeng/apache-tomcat-6.0.18
Using CATALINA_TMPDIR: /nfs10/aofeng/apache-tomcat-6.0.18/temp
Using JRE_HOME: /nfs10/aofeng/jdk1.6.0_10/jre
验证
1、检查日志验证。
Nov 19, 2008 10:11:13 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /nfs10/aofeng/jdk1.6.0_10/jre/lib/i386/server:/nfs10/aofeng/jdk1.6.0_10/jre/lib/i386:/nfs10/aofeng/jdk1.6.0_10/jre/../lib/i386::/nfs10/aofeng/libevent/lib:/nfs10/aofeng/libevent/lib:/usr/java/packages/lib/i386:/lib:/usr/lib
Nov 19, 2008 10:11:14 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8899
Nov 19, 2008 10:11:14 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2713 ms
Nov 19, 2008 10:11:14 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 19, 2008 10:11:14 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Nov 19, 2008 10:11:18 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8899
Nov 19, 2008 10:11:18 AM org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use
Nov 19, 2008 10:11:18 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8010
Nov 19, 2008 10:11:18 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=1 time=0/131 config=null
Nov 19, 2008 10:11:18 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4520 ms
日志显示启动成功,启动过程中没有出现错误。
2、浏览器请求验证。