2. 安装APR
APR项目有APR, APR-util和APR-iconv,其中APR-iconv是可选安装的。
下载最新的APR和APR-util源码包
2.1安装APR
1)解压apr-1.5.2:
tar -zxf apr-1.5.2.tar.gz
2) cd apr-1.5.2
3)依次执行./configure
make
make install
在apr被安装到了/usr/local/apr目录下面
2.2 安装APR-util
1) 解压apr-util-1.4.1: tar -zxf apr-util-1.5.4.tar.gz
2) cd apr-util-1.5.4
3) 依次执行 ./configure --with-apr=/usr/local/apr/bin/apr-1-config (如果不加后面的可能会报APR找不到的错误"checking for APR... no
configure: error: APR could not be located. Please use the --with-apr option."
make
make install
apr-util也被安装找/usr/local/apr下面
3.
进入tomcat主目录下,
在bin中
tar zxvf tomcat-native.tar.gz
cd tomcat-native-1.1.33-src/jni/native下面依次执行:
./configure --with-apr=/usr/local/apr/bin/apr-1-config (如果不加后面的可能会报APR找不到的错误"checking for APR... no
configure: error: APR could not be located. Please use the --with-apr option."
make
make install
4. 设置启动参数:
cd /opt/msg/tomcat-12501/bin
vi catalina.sh
在catalina.sh 加入启动参数: CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=/usr/local/apr/lib"
4. protocol="org.apache.coyote.http11.Http11AprProtocol"
没有合适的资源?快使用搜索试试~ 我知道了~
tomcat apr工具包及安装说明
共3个文件
gz:2个
txt:1个
4星 · 超过85%的资源 需积分: 14 7 下载量 126 浏览量
2015-12-03
19:27:57
上传
评论 1
收藏 1.82MB ZIP 举报
温馨提示
tomcat apr模式配置需要的包,及配置说明。灰常简单。让吞吐量飞起。
资源推荐
资源详情
资源评论
收起资源包目录
tomcat apr模式.zip (3个子文件)
tomcat aprģʽ
apr.txt 1KB
apr-1.5.2.tar.gz 1007KB
apr-util-1.5.4.tar.gz 854KB
共 3 条
- 1
资源评论
- bCxDeFr3pya2015-12-03我感觉还行吧,只是感觉用着的资源不是特别顺手,可能是我自己的原因
- baby52u2019-05-18正需要,感谢分享只是感觉用着的资源不是特别顺手,可能是我自己的原因
xmdu
- 粉丝: 2
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功