简体   繁体   English

Tomcat连接器(mod_jk)出错

[英]Tomcat Connectors (mod_jk) make error

I'm trying to install Tomcat Connectors (mod_jk) on my Mac and I'm following the instructions from the following sites. 我正在尝试在Mac上安装Tomcat连接器(mod_jk),并且正在按照以下网站的说明进行操作。

http://pablotips.blogspot.com/2015/01/compiling-modjk-on-mac-os-x-1010.html http://pablotips.blogspot.com/2015/01/compiling-modjk-on-mac-os-x-1010.html

https://www.bartbusschots.ie/s/2009/05/05/installing-mod_jk-for-apache-22-on-mac-os-x-105-leopard/ https://www.bartbusschots.ie/s/2009/05/05/installing-mod_jk-for-apache-22-on-mac-os-x-105-leopard/

I get the following error when I run the make process. 运行make进程时出现以下错误。

在此处输入图片说明

Q.1 How can I fix this error and compile the make process? Q.1如何解决此错误并编译制作过程?

Q.2 Will this help me serve my files from the default apache /Sites directory using Tomcat server? Q.2这是否可以帮助我使用Tomcat服务器从默认的apache / Sites目录提供文件?

  1. find apr_lib.h 找apr_lib.h

    $ sudo find / -name "apr_lib.h"

  2. add lib 添加库

    LDFLAGS='-L[path]' CFLAGS='-I[path]' LDFLAGS ='-L [路径]'CFLAGS ='-I [路径]'

    $ ./configure CFLAGS='-arch x86_64' APXSLDFLAGS='-arch x86_64' LDFLAGS='-L/usr/include/apr-1' CFLAGS='-I/usr/include/apr-1' --with-apxs=/usr/sbin/apxs

When you are starting Tomcat you are seeing following error as well: 启动Tomcat时,还会看到以下错误:

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path 信息:在java.library.path中找不到基于APR的Apache Tomcat本机库,该库在生产环境中具有最佳性能。

The APR is Apache Tomcat Native library which allows optimal performance in production environments. APR是Apache Tomcat本机库,可在生产环境中实现最佳性能。

Prerequisites for installing APR APR library APR-util library OpenSSL library 安装APR的先决条件APR库APR-util库OpenSSL库

Download it from this link http://apr.apache.org/download.cgi and integrate to Tomcat. 从此链接http://apr.apache.org/download.cgi下载它,并集成到Tomcat。 This will fix your problem 这将解决您的问题

When you installed and integrated then when you restart Tomcat server. 当您安装并集成后再重新启动Tomcat服务器。 You will see like following: 您将看到如下所示:

After restarting the Tomcat service, we can get the following message in catalina.out log if APR was installed successfully. 重新启动Tomcat服务后,如果APR安装成功,我们可以在catalina.out日志中获得以下消息。 ------------ Oct 07, 2015 8:08:54 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.5.2. ------------ 2015年10月7日上午8:08:54 org.apache.catalina.core.AprLifecycleListener初始化信息:使用APR版本1.5.2加载了基于APR的Apache Tomcat本机库1.1.29 。 Oct 07, 2015 8:08:54 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 2015年10月7日上午8:08:54 org.apache.catalina.core.AprLifecycleListener初始化信息:APR功能:IPv6 [true],sendfile [true],接受过滤器[false],随机[true]。

Let me know if you need more help from my end 让我知道您是否需要更多帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM