tomcat unix jdk配置
UNIX下面JDK路径配置。此JDK可以不用配置环境变量。
JAVA_HOME=/usr/java5/ PATH=$JAVA_HOME:$JAVA_HOME/bin:$PATH CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar export PATH JAVA_HOME CLASSPATH
将以上JDK路径配置配置到catalina.sh文件中的下面两行之间即可。
#OS specific support. $var _must_ be set to either true or false. JAVA_HOME=/usr/java5/ PATH=$JAVA_HOME:$JAVA_HOME/bin:$PATH CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar export PATH JAVA_HOME CLASSPATH cygwin=false
在同一个机器上启动两个同一版本的tomcat需要改动server.xml
<Server port="9005" shutdown="SHUTDOWN"> <Connector port="9000" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain" /> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
注意改动900590008009三个端口注意二三中的8443要一致
相关推荐
lonesomer 2020-09-17
Locksk 2020-10-12
佛系程序员J 2020-10-10
gdb 2020-09-14
zousongshan 2020-08-10
hell0kitty 2020-07-28
malonely 2020-07-20
missingmuch 2020-07-19
eternityzzy 2020-07-19
wangrui0 2020-06-28
一世为白 2020-06-21
MAC2007 2020-06-16
凉白开 2020-06-17
zhangwentaohh 2020-06-14
liangston 2020-06-14
linzb 2020-06-14
89421478 2020-06-12