File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes changing the port number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "changing the port number" Watch "changing the port number" New topic
Author

changing the port number

jignesh soni
Ranch Hand

Joined: Dec 10, 2007
Posts: 150
I changed the port number where the Apache server listens to requests.

(default) " Listen : 80 ",
and I changed it as " Listen : 8080 "

But still Apache listens on port 80 only. Why is it so ? Do I need to restart the computer for change to be affective ? If not, then why is change not working ?

thanks
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3829

jignesh soni wrote:
Do I need to restart the computer for change to be affective ?



Yes. You should.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Are you talking about the Apache Web Server
or
Apache Tomcat?

They're two completely different products.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Vijitha: You´re wrong. You don´t need to restart the computer for that. That´s way too drastic. Just restart the server instance.

Ben: Looking at the setting name "Listen" and the default port number of 80, he´s talking about Apache HTTP Server.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3829

Bauke Scholtz wrote:Vijitha: You´re wrong. You don´t need to restart the computer for that. That´s way too drastic. Just restart the server instance.



Ooops. Sorry. Yes I mean the server instance though I didn't notice the "computer" part.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: changing the port number