Topic: Tomcat 4.1启动后,只认IP地址,不认机器名

  Print this page

1.Tomcat 4.1启动后,只认IP地址,不认机器名 Copy to clipboard
Posted by: jfml
Posted on: 2003-07-04 11:06

http://xxx.xxx.xxx.xxx:8080可以访问

http://hostname:8080就不行了

请问原因在哪里呢,谢谢

2.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: why
Posted on: 2003-07-04 11:22

You may have to setup the valve (~RemoteHostValve) in server.xml.

Let me search on Google... this one is in Chinese
http://www.chinajavaworld.com/bbsoffline/jinghuaforum43/98.html

3.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: jbwang
Posted on: 2003-07-04 12:38

呵呵,wlsj也有一定的这样情况

4.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: jbwang] Copy to clipboard
Posted by: nothing
Posted on: 2003-07-04 12:44

hosts文件

M$ Windows 2000/xp :

windows/system32/drivers/etc/hosts

linux/unix:

/etc/hosts

5.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: why
Posted on: 2003-07-04 13:27

Yes, check etc/host first.

CrazyJavar: please post the error messages instead of simply saying 不行了. Smile

I believe with http://localhost:8080/manager/html , your other problem is solved.

6.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-07-04 14:03

谢谢,我现在manager可以登陆了

但是还是只认IP不认名字

我已经修改了hosts文件了

7.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: why
Posted on: 2003-07-04 20:50

CrazyJavar wrote:
但是还是只认IP

我已经修改了hosts文件了

http://localhost:8080 也可以吧?
請您說清楚怎樣不行、不认名字哩?有什麼錯誤信息呢?
hosts文件上修改了什麼呢?

8.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-07-04 21:02

首先,我在hosts文件中append了一行

我机器的IP 我的主机名

然后,http://localhost:8080还是不行

http://主机名:8080也不行

错误信息如下

The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

--------------------------------------------------------------------------------

Please try the following:

Click the Refresh button, or try again later.

Open the myhostname:8080 home page, and then look for links to the information you want.
If you believe you should be able to view this directory or page, please contact the Web site administrator by using the e-mail address or phone number listed on the myhostname:8080 home page.
10060 - Connection timeout
Internet Security and Acceleration Server

--------------------------------------------------------------------------------
Technical Information (for support personnel)

Background:
The gateway could not receive a timely response from the Web site you are trying to access. This might indicate that the network is congested, or that the Web site is experiencing technical difficulties.

ISA Server: hzisa2.cn.utstar.com
Via: 1.0 HZISA1

Time: 7/4/2003 12:59:27 PM GMT

只有http://127.0.0.1:8080和http://我的IP:8080可以访问

9.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: why
Posted on: 2003-07-04 22:30

大俠的 hosts 文件上有 127.0.0.1 localhost 嗎?
修改 hosts 文件後有重新啟動嗎?
有沒有用 proxy 呢?

有沒有試用 IIS (Win2k/WinXP) 或 Apache server (port 80) 呢?

10.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: why] Copy to clipboard
Posted by: 牛老板
Posted on: 2003-07-04 23:00

咔咔!真是怪啊!

11.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: floater
Posted on: 2003-07-04 23:26

咔咔!真是怪啊!

hehe, 牛老板 is an alien now.

add host name to your hosts file, like

mystupidmachine 127.0.0.1

Then try

http://mystupidmachine:8080

12.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: floater] Copy to clipboard
Posted by: why
Posted on: 2003-07-04 23:50

floater wrote:
add host name to your hosts file, like
mystupidmachine 127.0.0.1

floater: shouldn't the order be
127.0.0.1 mystupidmachine

13.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: floater] Copy to clipboard
Posted by: 牛老板
Posted on: 2003-07-04 23:53

咔咔,奇怪...

建议他贴出hosts文件的内容.

14.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: why] Copy to clipboard
Posted by: floater
Posted on: 2003-07-05 00:58

why wrote:
floater: shouldn't the order be
127.0.0.1 mystupidmachine

you are right. Tongue

15.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-07-09 09:31

知道原因了

是我浏览器自动被设置为公司的代理服务器的问题

把代理去掉了就OK了

谢谢大家的帮助

16.,人事不醒ing................. [Re: CrazyJavar] Copy to clipboard
Posted by: nothing
Posted on: 2003-07-09 09:46

晕倒在地,人事不醒ing.................

17.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: why
Posted on: 2003-07-09 10:33

果然是用了Proxy Dead
小的在7月4日问过了。What are you talking about?

CrazyJavar大侠
您发帖近两百篇了,其中有没有分享心得或帮助同学的呢?
小的可以给您打一分,让您进入CJSDN的FTP2啦!Smile
(有点奇怪大侠不早早申请一下)

nothing大侠
最近也见您热心讨论(很多版块哩!),有没有一些比较特出的帖子呢?
小的也可以给您加一分啦!Smile

18.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-07-09 10:43

谢谢啊,不过我是提问居多

以后会经常分享自己的经验个大家的

只是怕大家都已经知道了

呵呵

19.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: dapan
Posted on: 2003-07-09 11:36

CrazyJavar wrote:
谢谢啊,不过我是提问居多

以后会经常分享自己的经验个大家的

只是怕大家都已经知道了

呵呵


总是会有知道,有不知道呀!

^_^

20.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: why
Posted on: 2003-07-11 13:44

CrazyJavar大侠,如果您无意争取一分以进入FTP的话,我们也无法逼您的
不过FTP2上有几本Tomcat的书,说不定您看过后可以分享其中精要呢!

想了想,就这句“以后会经常分享自己的经验”,加上200篇留言,打一分啦!Wink
以后不见大侠分享经验就收回:-o

21.Re:Tomcat 4.1启动后,只认IP地址,不认机器名 [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-07-11 14:56

谁说我不想加分的

谢谢啦


   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