File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me!

 
jack.demo
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i has installed tomcat, then run startup file, but the aphache web site wasnot opened.i tried to type http://localhost:8080 in IE,it links to www.cnnic.com.cn, then i type http://127.0.0.1:8080, this time it's right. and my window system file Host also is right:127.0.0.1 localhost. who can help me?i was confused!
 
Hartmut Ludwig
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well - this is a lookup problem. Your system does not know the name "localhost".
You can easily fix this using a host file. A host file is something like a DNS-Lookup table. It assigns IPs to hostnames. The format is quite easy. My hosts-file looks like this:

You see: it contains only one entry which assigns the logical hostname "localhost" to your local loopback IP (the lines with # are treated as comments).
If you use Win9x you will find your hosts file in the system folder. If you use NT/2000/XP you will find it in system32\drivers\etc.
Edit the file and add the entry like shown above. After that everything will be fine...
cheers
Hartmut
 
jack.demo
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My hosts-file is same as your hosts-file, no error. I believe my regedit keys had problems, but i don't know which key is wrong.
 
cyrus wang
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should change your configure file.
/tomcat/conf/server.xml
the last line .
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic