2014年1月10日金曜日

How to change the port of tomcat

1.The default port is 8080.
2.You can find following Server.xml file, Go to conf folder in tomcat installation directory.
path-->../apache-tomcat-7.0.47/conf
3.Change the port=8080 value to port=9080.
 <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

 <Connector port="9080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="9080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
5.Save file and Verify result.
  Access URL: http://XXXX:9080

0 件のコメント :

コメントを投稿