Tomcat7 配置 ssl
2014-04-16 15:57
141 查看
运行一个配置了ssl的项目时tomcat总是启动不成功,报错:“requires the APR/native library which is not available”,后来发现是找不到apr的库。
缺少apr的支持:
Tomcat Native 是利用 APR 来提升Tomcat性能的本地API
Tomcat Native 这个项目可以让 Tomcat 使用 Apache 的 apr 包来处理包括文件和网络IO操作,以提升性能。
以下是tomcat官网搜索说明:
Tomcat can use the Apache Portable Runtime to provide superior scalability, performance, and better integration with native server technologies. The Apache Portable Runtime is a highly portable library that is at the heart of Apache HTTP Server 2.x. APR has many uses, including access to advanced IO functionality (such as sendfile, epoll and OpenSSL), OS level functionality (random number generation, system status, etc), and native process handling (shared memory, NT pipes and Unix sockets).
网上搜索解释:
tomcat native在具体的运行平台上,提供了一种优化技术,它本身是基于APR(Apache Portable Runtime)技术
也就是说,我们应用了tomcat native技术之后,tomcat在跟操作系统级别的交互方面可以做得更好,并且它更像apache一个,可以更好地作为一台web server。
下载地址:
http://mirrors.cnnic.cn/apache//tomcat/tomcat-connectors/native/1.1.30/binaries/
下载第一个,因为里边有我们需要的dll文件。
把tcnative-1.dll文件考到jdk/bin目录或者tomcat/bin(哪个配置了环境变量就放哪个里)再运行就可以了。这里需要注意的是要选择版本正确的dll文件,不然会报“Can't load IA 64-bit .dll on a AMD 64-bit platform”的错误,我是64位的系统就用x64文件夹里的dll文件。
参考:http://iceeggplant.blog.51cto.com/1446843/1218909
缺少apr的支持:
Tomcat Native 是利用 APR 来提升Tomcat性能的本地API
Tomcat Native 这个项目可以让 Tomcat 使用 Apache 的 apr 包来处理包括文件和网络IO操作,以提升性能。
以下是tomcat官网搜索说明:
Tomcat can use the Apache Portable Runtime to provide superior scalability, performance, and better integration with native server technologies. The Apache Portable Runtime is a highly portable library that is at the heart of Apache HTTP Server 2.x. APR has many uses, including access to advanced IO functionality (such as sendfile, epoll and OpenSSL), OS level functionality (random number generation, system status, etc), and native process handling (shared memory, NT pipes and Unix sockets).
网上搜索解释:
tomcat native在具体的运行平台上,提供了一种优化技术,它本身是基于APR(Apache Portable Runtime)技术
也就是说,我们应用了tomcat native技术之后,tomcat在跟操作系统级别的交互方面可以做得更好,并且它更像apache一个,可以更好地作为一台web server。
下载地址:
http://mirrors.cnnic.cn/apache//tomcat/tomcat-connectors/native/1.1.30/binaries/
下载第一个,因为里边有我们需要的dll文件。
把tcnative-1.dll文件考到jdk/bin目录或者tomcat/bin(哪个配置了环境变量就放哪个里)再运行就可以了。这里需要注意的是要选择版本正确的dll文件,不然会报“Can't load IA 64-bit .dll on a AMD 64-bit platform”的错误,我是64位的系统就用x64文件夹里的dll文件。
参考:http://iceeggplant.blog.51cto.com/1446843/1218909
相关文章推荐
- apache,nginx及tomcat中配置SSL双向访问
- tomcat7 ssl 配置
- Tomcat:配置SSL
- Tomcat SSL配置
- 配置Tomcat支持SSL的访问
- windows和linux下配置tomcat的https通信(ssl单向认证)
- TOMCAT使用CA签发证书配置单向和双向SSL
- Nginx配置ssl以及简单的+Tomcat
- Tomcat 6中配置SSL双向认证
- Tomcat配置SSL(8443)
- Tomcat5.0+mysql配置JDBCRealm,DBCP,ssl,中文乱码处理
- ssl单向tomcat配置webservice访问方法
- Tomcat配置SSL
- TOMCAT SSL 双向认证配置(HTTPS)
- Tomcat配置SSL(单向认证)
- keytool生成证书与Tomcat SSL配置
- 阿里数字证书 tomcat 配置ssl能在微信小程序上使用时 需要注意的几点
- Tomcat配置SSL
- Tomcat中的ssl加密配置 粘过来的
- 使用HttpClient发送HTTPS请求以及配置Tomcat支持SSL