2008年6月19日 星期四

Change Tomcat Port

Abstract
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="8080"
secure="false"
maxThreads="100"
maxSpareThreads="50"
minSpareThreads="10"

3. Startup the web server and access it now using:
http://localhost/


上網用Google找了一陣子終於找到了JDK 6.0+Tomcat 5.5/6.0在Windows上無法啟動問題的解法: 將JDK或JRE的bin目錄下的msvcr71.dll複製到Windows的system32目錄下或Tomcat的bin目錄下即可。

我個人是偏好複製到system32目錄,主要的考量是對於日後升級到別的Tomcat版本較為方便。

沒有留言: