« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | | | | |
| 公告 |
戒除浮躁,读好书,交益友 |
Blog信息 |
blog名称:邢红瑞的blog 日志总数:523 评论数量:1142 留言数量:0 访问次数:9694989 建立时间:2004年12月20日 |

| |
[opensource]tomcat使用apr 原创空间, 软件技术, 电脑与网络
邢红瑞 发表于 2006/3/25 15:29:00 |
从tomcat5.5开始,tomcat可以使用apache的apr,这样可以加速IO的访问和使用Openssl,和resin看齐了。windows只要下载 http://tomcat.heanet.ie/native/1.1.1/binaries/win32/tcnative-1.dll将这个文件复制到C:\WINDOWS\system32\下面linux下载 http://tomcat.heanet.ie/native/1.1.2/binaries/linux/tomcat-native-i686-whatever-linux2.tar.gz放到jdk安装目录下的/jre/lib/i386出现2006-1-26 23:36:16 org.apache.coyote.http11.Http11AprProtocol init Initializing Coyote HTTP/1.1 on http-80802006-1-26 23:36:16 org.apache.coyote.ajp.AjpAprProtocol init Initializing Coyote AJP/1.3 on ajp-8009就是激活了这个功能使用了apr之后,如果使用了https,https的配置也需要作改变。需要用到openssl来进行证书文件的生成。
<!-- ssl for apr --> <Connector port="8443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" SSLEngine="on" SSLCertificateFile="..\conf\ca\server.crt" SSLCertificateKeyFile="..\conf\ca\server.key" />linux下编译cd apache-tomcat-5.5.14/bin/tomcat-native-1.1.1/jni/native/ ./configure --with-apr=/usr/bin/apr-1-config --with-java-home=/usr/java/jdk1.5.0_06/ makemake installbin/catalina.sh加上CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib" |
|
|