| Author |
tomcat command line options
|
shobhit garg
Ranch Hand
Joined: Mar 07, 2004
Posts: 42
|
|
Hi, Is there any command line option using which we can set the tomcat server port to run on some other port instead of 8080
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
No. This setting is configured in your {tomcat install}/conf/server.xml file.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Rama Krishna Ghanta
Ranch Hand
Joined: Nov 20, 2006
Posts: 59
|
|
The only way to change the default port 8080 is to modify the below code in {Tomcat root directry}/conf/server.xml. Change the Connector port to "80" instead of "8080"
|
Ram...
|
 |
Neerav Narielwala
Ranch Hand
Joined: Dec 08, 2006
Posts: 106
|
|
Open server.xml in %TOMCAT_HOME%\conf directory and edit the <Connector> element. For SimpleTcpConnector, change the sub-element "port" value to 80. Yes, You got it!
|
<a href="http://www.java-tips.org/java-tutorials/tutorials/" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Weblog</a> | <a href="http://computer-engineering.science-tips.org" target="_blank" rel="nofollow">Computing Articles</a>
|
 |
 |
|
|
subject: tomcat command line options
|
|
|