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 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:

<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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值