转载至:http://newlethe.iteye.com/blog/1169046
Tomcat版本:apache-tomcat-6.0.26-windows-x86.zip
找到conf目录下文件server.xml
修改一:
大约在22行,找到如下代码,修改SHUTDOWN端口,默认8005
- <!-- Note: A "Server" is not itself a "Container", so you may not
- define subcomponents such as "Valves" at this level.
- Documentation at /docs/config/server.html
- -->
- <Server port="8005" shutdown="SHUTDOWN">
修改二:
大约在69行,找到如下代码,修改HTTP访问端口,默认8080
- <!-- A "Connector" represents an endpoint by which requests are received
- and responses are returned. Documentation at :
- Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
- Java AJP Connector: /docs/config/ajp.html
- APR (HTTP/AJP) Connector: /docs/apr.html
- Define a non-SSL HTTP/1.1 Connector on port 8080
- -->
- <Connector port="8080" protocol="HTTP/1.1"
- connectionTimeout="20000"
- redirectPort="8443" />
修改三:
大约在90行,找到如下代码,修改JVM启动端口,默认8009
- <!-- Define an AJP 1.3 Connector on port 8009 -->
- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
最后通过bin目录下startup.bat直接启动即可。