Topic: Tomcat配置 |
Print this page |
1.Tomcat配置 | Copy to clipboard |
Posted by: yangzibaobei Posted on: 2003-05-05 16:53 我下载并安装了Tomcat4.1,但我在IE中键入http://localhost:8080/时并没有出现Tomcat的主页。 请教各位高手难道是我什么地方没有配置吗? Tomcat该怎么配置? 谢谢!! |
2.Re:Tomcat配置 [Re: yangzibaobei] | Copy to clipboard |
Posted by: mazalet Posted on: 2003-05-05 17:38 不可能发生的. 你必须要装jdk的啊. 把tomcat 的安装目录的lib目录放class apth 中. 或者你根本没有启动,] 在开始菜但中启动tomcat! |
3.Re:Tomcat配置 [Re: mazalet] | Copy to clipboard |
Posted by: yangzibaobei Posted on: 2003-05-05 21:32 JDK装了的 而且tomcat 的安装目录的lib目录放class apth 中. 而且启动了的 可还是不行啊 |
4.Re:Tomcat配置 [Re: yangzibaobei] | Copy to clipboard |
Posted by: why Posted on: 2003-05-05 22:18 版本是4.1.什麼?在哪個平台上安裝和啟動呢? Tomcat啟動時有一個視窗,上面有什麼訊息?例如 HTTP/1.1 在哪個 port 而且tomcat 的安装目录的lib目录放class apth 中 好像沒有這個需要的,startup.sh / startup.bat 會把需要的 environmental variables 設置好,雖然小的會(並建議)設好 CATALINA_HOME |
5.Re:Tomcat配置 [Re: yangzibaobei] | Copy to clipboard |
Posted by: yuan Posted on: 2003-05-06 08:33 你安装的时候,为服务器配置的是8080端口吗? |
6.Re:Tomcat配置 [Re: why] | Copy to clipboard |
Posted by: yangzibaobei Posted on: 2003-05-06 22:21 下面是启动时的窗口信息: 2003-5-6 21:53:22 org.apache.commons.modeler.Registry loadRegistry 信息: Loading registry information 2003-5-6 21:53:22 org.apache.commons.modeler.Registry getRegistry 信息: Creating new Registry instance 2003-5-6 21:53:22 org.apache.commons.modeler.Registry getServer 信息: Creating MBeanServer 2003-5-6 21:53:23 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.18-LE-jdk14 2003-5-6 21:53:27 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on port 8080 2003-5-6 21:53:27 org.apache.jk.common.ChannelSocket init 信息: JK2: ajp13 listening on /0.0.0.0:8009 2003-5-6 21:53:27 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/94 config=C:\tomcat\conf\jk2.properties 我查了好多资料都没法解决该问题 而且jdk, tomcat我都重装还是不行! jdk装在c:\jdk; tomcat装在c:\tomcat 环境变量设置如下: CATALINA_HOME : c:\tomcat CLASSPATH : c:\jdk\lib\dt.jar;c:\jdk\lib\tools.jar;c:\jdk\bin;c:\tomcat JAVA_HOME : c:\jdk 不知是那里出错了,tomcat可以启动,但就是在IE里看不到tomcat的主页 显示信息为: While trying to retrieve the URL: http://localhost:8080/ The following error was encountered: Unable to determine IP address from host name for localhost The dnsserver returned: No DNS records This means that: The cache was not able to resolve the hostname presented in the URL. Check if the address is correct. 请高手赐教! |
7.Re:Tomcat配置 [Re: yangzibaobei] | Copy to clipboard |
Posted by: why Posted on: 2003-05-07 01:32 1. try http://127.0.0.1:8080 2. check %windir%\system32\drivers\etc\hosts and see whether localhost is mapped to 127.0.0.1. not related to your problem: c:\jdk\bin is not useful on the CLASSPATH with JDK1.4, you'd like to include . in your CLASSPATH |
8.Re:Tomcat配置 [Re: yangzibaobei] | Copy to clipboard |
Posted by: yangzibaobei Posted on: 2003-05-07 21:07 http://127.0.0.1:8080这样是可以的! 为什么会这样?能不能解释一下 另:怎样才能使http://localhost:8080/ 同样成立? 环境变量windir 的值为:%SystemRoot% 请详细解释一下!!!! 谢谢!! |
9.Re:Tomcat配置 [Re: yangzibaobei] | Copy to clipboard |
Posted by: why Posted on: 2003-05-07 21:21 %windir%\system32\drivers\etc\hosts == [WINDOWS_INSTALL_DIR]\system32\drivers\etc\hosts ~~ C:\WINNT\system32\drivers\etc\hosts normally localhost resolves to 127.0.0.1, the loopback IP. ping localhost to see what it's binded to. well, there's something wrong with your ethernet setup, the hosts file is one place to check. |
10.Re:Tomcat配置 [Re: why] | Copy to clipboard |
Posted by: yangzibaobei Posted on: 2003-05-08 14:10 问题解决了!!多谢各位! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |