Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is localhost

 
samdeep aarzoo
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when we start apache tomcat server

http://localhost:8080/
i want to ask
what is localhost ?
is it the first program server is starting to initiate itself?
or its local machine name

i know we run server on port no 80(logical concept)
than why we write 8080

please help???
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Localhost is the name given to the local machine.
It's mapped to 127.0.0.1 in your machine's host file.

By default, Tomcat ships configured to run on port 8080.
This is most likely because it's first an app server and will often share a machine with a webserver (such as Apache httpd). You can configure Tomcat to run on port 80 by changing the port number in server.xml.

Note: On a Unix machine, only programs started by the root user can bind to ports below 1024. There are work arounds for this.
Search this forum to find them.
They've been discussed often here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic