#编辑
#vi/usr/local/tomcat/conf/jk2.properties
# List of needed handlers.
Handler.list=channelsocket,request
# Override The default port for the Channelsocket
channelsocket.port=8009
#编辑文件:
#vi/usr/local/apache/conf/workers2.properties
# only at Beginnin. In production uncomment it out
[Logger.apache2]
Level=debug
[SHM]
File=/usr/local/apache/logs/shm.file
size=1048576
# Example Socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri Mapping
[Uri:192.168.0.90/*.jsp]
worker=ajp13:localhost:8009
[Uri:211.167.83.165/*.jsp]
worker=ajp13:localhost:8009
#编辑http. conf
#修改
DocumentRoot \ "/usr/local/tomcat/webapps\"
#添加index. jsp
DirectoryIndex index.html Index.html.var index.jsp
LoadModule Jk2_module modules/mod_jk2.so
Order Deny,allow
Deny from all
#
# Order Deny,allow
# Deny from all
#
At the time of configuring Server.xml:
Configure management ports and port order of connections upside down
The catalina.out can be observed:
So when you connect with Apache, you don't have to wait.
Port=\ "8080\" minprocessors=\ "5\" maxprocessors=\ "75\"
Enablelookups=\ "true\" redirectport=\ "8443\"
Acceptcount=\ "100\" debug=\ "0\" connectiontimeout=\ "20000\"
Useurivalidationhack=\ "false\" disableuploadtimeout=\ "true\"/>
#server. XML does not support annotations in Chinese
#对 shared/classes Directory of Java changes can not immediately respond to the JSP bid. No immediate effect.
The above installation is also suitable for jakarta-tomcat-5.0.12 in the following configuration note
When #在配置 jakarta-tomcat-5.0.12, pay attention to server.xml.
Not closed.
Bugs:
In the Catalina.out reported an error.
Overall, the performance of Tomcat 5.0 is better than that of 4.x. It starts faster.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.