正文

Windows下多个tomcat服务独占JVM启动的设置方法2012-01-30 23:44:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/txdnet/53162.html

分享到:

时间:2012-01-15 浏览:15次 来源:本站 Tomcat是Apache 软件基金会(Apache Software Foundation)的Jakarta 项目中的一个核心项目,目前已经单独作为项目进行维护,由Apache、Sun 和其他一些公司及个人共同开发而成。由于有了Sun 的参与和支持,最新的Servlet 和JSP 规范总是能在Tomcat 中得到体现,Tomcat 5 支持最新的Servlet 2.4 和JSP 2.0 规范。因为Tomcat 技术先进、性能稳定,而且免费,因而深受Java 爱好者的喜爱并得到了部分软件开发商的认可,成为目前比较流行的Web 应用服务器。目前最新版本是7.0,支持Servlet3.0和JSP2.2规范,以下是7.0的特性说明: Apache Tomcat 7.x is the current focus of development. It builds upon the improvements made in Tomcat 6.0.x and implements the Servlet 3.0, JSP 2.2 and EL 2.2 specifications. In addition to that, it includes the following improvements: Web application memory leak detection and prevention(内存泄露的检测和预防) Improved security for the Manager and Host Manager applications(加强了应用管理安全) Generic CSRF protection(Cross-site request forgery跨站请求伪造的防护机制) Support for including external content directly in a web application(支持跨web应用的内容引入) Refactoring (connectors, lifecycle) and lots of internal code clean-up(采用了新的连接器,生命周期管理和内部代码清理机制) 下面使用TOMCAT7.0.23版本在WINDOWS下设置多个独立JVM的服务 1. 首先请下载JDK并在windows环境变量中配置好JDK环境: CLASSPATH=%JAVA_HOME%\bin;%JAVA_HOME%\jre\lib;%JAVA_HOME%\jre\lib\ext;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib;.; JAVA_HOME=e:\JDK Path=%JAVA_HOME%\bin; 2. 下载apache-tomcat-7.0.23.zip http://tomcat.apache.org/download-70.cgi 3. 解压到磁盘比如:F:\ApacheSoftwareFoundation\apache-tomcat-7.0.23 4. 修改F:\ApacheSoftwareFoundation\apache-tomcat-7.0.23\bin\service.bat文件 注释掉以下三行- (重要) rem Set default Service name rem set SERVICE_NAME=Tomcat7 rem set PR_DISPLAYNAME=Apache Tomcat 7 详情请见 http://www.txdnet.cn/log/20151307000001.xhtm

阅读(1939) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册