---
title: "How to change tomcat portnumber"
author: "tkiicpp"
date: "2011-01-13T16:31:10Z"
tags: [".net", "Access", "Go", "Tomcat", "Web"]
categories: ["企业架构"]
slug: "how-to-change-tomcat-portnumber"
draft: false
lastmod: "2011-01-13T16:31:10Z"
id: 870476
url: "https://tkiicpp.iteye.com/blog/870476"
---

orignal address: [http://www.dimensionex.net/en/docs/art008.htm](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 web servers running on your machine, you may want to change this setting.* 

*This document tells you how to do this on Tomcat version 3.3. **Please note** : These instructions may not work for other versions of Tomcat.*

### Let's go!

1\. Open the folder **tomcat\\conf**  on your 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 so that changes from:

&lt;Http10Connector port="**8080** "  
secure="false"  
maxThreads="100"  
maxSpareThreads="50"  
minSpareThreads="10" /&gt;

to:

&lt;Http10Connector port="**80** "  
secure="false"  
maxThreads="100"  
maxSpareThreads="50"  
minSpareThreads="10" /&gt;

3\. Startup the web server and access it now using:

http://localhost/