xyzjr 发表于 2017-1-19 09:26:06

How to change tomcat portnumber

  orignal address: http://www.dimensionex.net/en/docs/art008.htm
  Tomcat will run by default on TCP/IP port number 8080.Standard web sites use the port number 80 instead. IF you don't have other webservers running on your machine, you may want to change this setting. 
  This document tells you how to do this on Tomcat version3.3. Please note: These instructions may not work for other versionsof Tomcat.
Let's go!
1. Open the folder tomcat\conf onyour computer
2. Now with a text editor you have to open and modify server.xml.Here you have to identify the following line (line 184) and you modify it sothat changes from:
<Http10Connector port="8080"
secure="false"
maxThreads="100"
maxSpareThreads="50"
minSpareThreads="10" />  to:
  <Http10Connector port="80"
secure="false"
maxThreads="100"
maxSpareThreads="50"
minSpareThreads="10" />

  3. Startup the web server and access it now using:
  http://localhost/
页: [1]
查看完整版本: How to change tomcat portnumber