aspose file tools*
The moose likes Tomcat and the fly likes How to Change default-port 8080 to above 8000 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to Change default-port 8080 to above 8000" Watch "How to Change default-port 8080 to above 8000" New topic
Author

How to Change default-port 8080 to above 8000

Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

i'm not able to change my default port number to something 8090 or other ,even if i change in the /etc/tomcat6/server.xml ,it's not changing ,it still follows the same old 8080 , what's wrong ,what should be done ??
Ravinderjit Singh
Ranch Hand

Joined: Jan 13, 2010
Posts: 78
Can you share the snippet of server.xml which you have updated?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16308
    
  22

You can change the Tomcat http port to whatever you like (allowing for OS restrictions and port conflicts), however, there are several other port IDs you'll need to change as well if you want to run 2 separate tomcats at the same time, or you'll conflict with them. Do a general text search of server.xml and you'll see them. They include ports like 8443 (SSL), 8009 (Apache AJP), 8005 (Tomcat control) and others.


Customer surveys are for companies who didn't pay proper attention to begin with.
Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

It took a simple restart.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Change default-port 8080 to above 8000