码迷,mamicode.com
首页 > 其他好文 > 详细

Tomcat 环境变量分析

时间:2015-07-13 23:51:39      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:

Environment Variable Prerequisites
#
#   Do not set the variables in this script. Instead put them into a script
#   setenv.sh in CATALINA_BASE/bin to keep your customizations separate.
#
#   catalina        catalina是Apache Tomcat实现的servlet容器
#
#   CATALINA_HOME   May point at your Catalina "build" directory.
#                   Tomcat安装目录,如/usr/apache-tomcat-7.0.36/
#
#   CATALINA_BASE   (Optional) Base directory for resolving dynamic portions
#                   of a Catalina installation.  If not present, resolves to
#                   the same directory that CATALINA_HOME points to.
#                   (可选项)默认指向CATALINA_HOME地址
#
#   CATALINA_OUT    (Optional) Full path to a file where stdout and stderr
#                   will be redirected.
#                   Default is $CATALINA_BASE/logs/catalina.out
#                   (可选项)标准输出文件全路径
#                   默认为 $CATALINA_BASE/logs/catalina.out
#
#   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
#                   "run" or "debug" command is executed.
#                   Include here and not in JAVA_OPTS all options, that should
#                   only be used by Tomcat itself, not by the stop process,
#                   the version command etc.
#                   Examples are heap size, GC logging, JMX ports etc.
#                   (可选项)Java(应该是Tomcat)运行时选项, 当”start”,”run”,”debug”命令执行时使用到。
#                   包含此处和不在JAVA_OPTS中的全部选项, 仅用于Tomcat自身, 不能用于停止进程等. 
#                   例如堆大小, 垃圾回收日志, JMX端口等
#
#   CATALINA_TMPDIR (Optional) Directory path location of temporary directory
#                   the JVM should use (java.io.tmpdir).  Defaults to
#                   $CATALINA_BASE/temp.
#                   (可选项)临时文件路径地址
#                   默认为$CATALINA_BASE/temp
#
#   JAVA_HOME       Must point at your Java Development Kit installation.
#                   Required to run the with the "debug" argument.
#
#   JRE_HOME        Must point at your Java Runtime installation.
#                   Defaults to JAVA_HOME if empty. If JRE_HOME and JAVA_HOME
#                   are both set, JRE_HOME is used.
#                   Java运行时环境安装目录, 默认指向JAVA_HOME.
#                   如果同时设置了JRE_HOME和JAVA_HOME, 使用JRE_HOME.
#
#   JAVA_OPTS       (Optional) Java runtime options used when any command
#                   is executed.
#                   Include here and not in CATALINA_OPTS all options, that
#                   should be used by Tomcat and also by the stop process,
#                   the version command etc.
#                   Most options should go into CATALINA_OPTS.
#                   (可选项)Java运行选项, 当任何命令执行都会用到. 
#                   包含此处和不在CATALINA_OPTS中的全部选项, Tomcat会用到这些选项, 在停止进程和查看version信息时都会用到.
#                   大部分都应该进入CATALINA_OPTS设置。
#
#   JAVA_ENDORSED_DIRS (Optional) Lists of of colon separated directories
#                   containing some jars in order to allow replacement of APIs
#                   created outside of the JCP (i.e. DOM and SAX from W3C).
#                   It can also be used to update the XML parser implementation.
#                   Defaults to $CATALINA_HOME/endorsed.
#                   endorsed(被赞同的)
#                   (可选项)
#                   一些通过冒号分隔的路径的集合, 这些路径包含了一些jar包, 用于替换JCP组织之外创建的API.
#                   默认路径$CATALINA_HOME/endorsed
#
#   JPDA_TRANSPORT  (Optional) JPDA transport used when the "jpda start"
#                   command is executed. The default is "dt_socket".
#                   (可选项)
#                   JPDA: Java Platform Debugger Architecture, Java平台调试架构.
#                   JPDA传输时,当”jpda start”命令执行时用到. 
#                   默认值”dt_socket"
#
#   JPDA_ADDRESS    (Optional) Java runtime options used when the "jpda start"
#                   command is executed. The default is 8000.
#                   (可选项)
#                   Java运行时选项, 当”jpda start”命令执行时用到. 
#                   默认值8000(貌似是端口)
#
#   JPDA_SUSPEND    (Optional) Java runtime options used when the "jpda start"
#                   command is executed. Specifies whether JVM should suspend
#                   execution immediately after startup. Default is "n".
#                   (可选项)
#                   Java运行时选项, 当”jpda start”命令执行时用到. 
#                   指定了启动之后JVM是否应该立即暂停执行.
#
#   JPDA_OPTS       (Optional) Java runtime options used when the "jpda start"
#                   command is executed. If used, JPDA_TRANSPORT, JPDA_ADDRESS,
#                   and JPDA_SUSPEND are ignored. Thus, all required jpda
#                   options MUST be specified. The default is:
#
#                   -agentlib:jdwp=transport=$JPDA_TRANSPORT,
#                       address=$JPDA_ADDRESS,server=y,suspend=$JPDA_SUSPEND
#
#   CATALINA_PID    (Optional) Path of the file which should contains the pid
#                   of the catalina startup java process, when start (fork) is
#                   used
#                   (可选项)包含tomcat启动的Java进程的pid的文件路径
#
#   LOGGING_CONFIG  (Optional) Override Tomcat‘s logging config file
#                   Example (all one line)
#                   LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties"
#                   覆盖Tomcat的日志配置文件
#
#   LOGGING_MANAGER (Optional) Override Tomcat‘s logging manager
#                   Example (all one line)
#                   LOGGING_MANAGER="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
#                   日志管理器
# -----------------------------------------------------------------------------
 

Tomcat 环境变量分析

标签:

原文地址:http://www.cnblogs.com/bangbangtang/p/4644152.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!