一、安装apr支持:Native
1、Tomcat安装时,勾选Native选项安装的,无须再单独下载native.dll
2、单独下载安装native.dll,下载地址:http://tomcat.apache.org/download-native.cgi
解压之后去找到tcnative-1.dll,根据系统,复制32位或64位tcnative-1.dll到$tomcat$/bin/下
二、修改service.xml使用tomcat以apr方式运行
找到下面代码
<Connector port="8080" protocol="HTTP/1.1" redirectPort="8443"/>”
将connector为port="HTTP/1.1"修改为
<Connector port="8080" protocol="org.apache.coyote.http11.Http11AprProtocol" redirectPort="8443"/>