guodanhuai的个人博客分享 http://blog.sciencenet.cn/u/guodanhuai GIS,Spatio-temporal Analysis,Spatio-temoporal Data minig

博文

如何在一台机器上启动多个Tomcat

已有 3692 次阅读 2009-9-7 17:00 |个人分类:Web Development|系统分类:科研笔记| tomcat, 多个, 一台机器

在有些应用中,有时需要在一台机器上启动两个或多个Tomcat,如Tomcat+Eclipse+Geoserver应用中:

方法:
1、修改Server.xml
 将所有涉及到端口的数字的首数字加1,具体情况可视需要而定,只要该端口没有被占用即可。
 
 如:
 
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="9009" protocol="AJP/1.3" redirectPort="9443"/>


    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them

2、修改Startup.bat

将 if not "%CATALINA_HOME%" == "" goto gotHome 语句注释掉,
rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%
rem if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=%CURRENT_DIR%

https://blog.sciencenet.cn/blog-204718-254035.html

上一篇:outwardbound
下一篇:Most of data embedded in GPS devices is out-dated
收藏 IP: .*| 热度|

0

发表评论 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-18 02:42

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部