- 论坛徽章:
- 0
|
如果你的tomcat是作为服务器启动的话,
配置到tomcat.conf里面。
我以前配置的/etc/tomcat.conf,大概两年前吧。
- # tomcat5 service configuration file
- # $Id: tomcat.conf 12 2006-03-22 13:00:43Z root $
- # you could also override JAVA_HOME here
- # Where your java installation lives
- JAVA_HOME="/opt/java"
- TOMCAT_HOME="/opt/tomcat"
- # You can pass some parameters to java
- # here if you wish to
- #JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
- # Where your tomcat installation lives
- # That change from previous RPM where TOMCAT_HOME
- # used to be /var/tomcat.
- # Now /var/tomcat will be the base for webapps only
- CATALINA_HOME="$TOMCAT_HOME"
- CATALINA_TMPDIR="$TOMCAT_HOME"/temp
- JASPER_HOME="$TOMCAT_HOME"
- JAVA_ENDORSED_DIRS="$TOMCAT_HOME"/common/endorsed
- # What user should run tomcat
- TOMCAT_USER="root"
- # You can change your tomcat locale here
- #LANG=en_US
- # Time to wait in seconds, before killing process
- SHUTDOWN_WAIT=30
- # Set the TOMCAT_PID location
- CATALINA_PID="/var/run/tomcat.pid"
- # If you wish to further customize your tomcat environment,
- # put your own definitions here
- # (i.e. LD_LIBRARY_PATH for some jdbc drivers)
- # Just do not forget to export them :)
复制代码
/etc/init.d/tomcat
脚本稍微修改一下可以用于redhat,fedora应该也没有问题。 |
|