Apache Tomcat 7.0.0 简单配置

 Apache Tomcat 7.0.0 简单配置

 
 
This is the top-level entry point of the documentation bundle for the Apache Tomcat Servlet/JSP container. Apache Tomcat version 7.0 implements the Servlet 3.0 and JavaServer Pages 2.2 specifications from the Java Community Process, and includes many additional features that make it a useful platform for developing and deploying web applications and web services.
 
    Select one of the links from the navigation menu (to the left) to drill down to the more detailed documentation that is available. Each available manual is described in more detail below.
 
    apache-tomcat-7.0.0/bin/catalina.bat
 
打开此文件,在大概87行后面回车,添加如下设置:
 
set JAVA_OPTS=-server -Dcom.sun.management.jmxremote -Xms512m -Xmx1024m -XX:PermSize=400m -XX:MaxPermSize=400m
 
上面的设置就不用多说了,大伙都很清楚了。
 
*****************************************************************
 
apache-tomcat-7.0.0/bin/tomcat-users.xml
 
打开此文件,取消注释,修改如下设置:
 
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="manager-gui"/>
  <role rolename="admin"/>
  <user username="admin" password="admin" roles="admin,manager-gui"/>
</tomcat-users>
 
给 Tomcat 的管理帐户,设置的用户名与验证码。
 
*****************************************************************
 
 
apache-tomcat-7.0.0/bin/server.xml
 
打开此文件,在大概67行处,修改 Tomcat 运行所要占用的端口号:
 
<Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" redirectPort="8443" disableUploadTimeout="true"/>
 
Tomcat 运行时所要使用的端口号。
 
*****************************************************************
 
在 Linux 系统下只需修改如下一个文件即可,修改如下:
 
catalina.bat
 
JAVA_HOME=/usr/java/jdk1.6.0_18/
JAVA_OPTS="-server -Xms1800m -Xmx1800m -XX:PermSize=400m -XX:MaxPermSize=400m -Dcom.sun.management.jmxremote"
 
做个简单备忘笔记,以后配置 Web 服务时就方便了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值