使用 Apache 2.2 安装 mod_jk
我已经下载了在 CentOS 上运行的 Apache 2.2 的 mod_jk-1.2.28-httpd-2.2.X.so,并按照 http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html。当我尝试启动 httpd 时,它失败并出现以下错误: “启动httpd:httpd:/etc/httpd/conf/httpd.conf第993行语法错误:/opt/apache-tomcat-6.0.26/conf/jk/mod_jk.conf-auto第2行语法错误:无法将 /etc/httpd/modules/mod_jk-1.2.28-httpd-2.2.X.so 加载到服务器:/etc/httpd/modules/mod_jk-1.2.28-httpd-2.2.X.so:错误的 ELF 类: ELFCLASS32”
这是否意味着 mod_jk-1.2.28-httpd-2.2.X.so 尚未正确编译?。对此我能做什么? 谢谢
彼得
I have downloaded mod_jk-1.2.28-httpd-2.2.X.so for Apache 2.2 running on CentOS, and set up as per http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html. When I try to start httpd it fails with the following error:
"Starting httpd: httpd: Syntax error on line 993 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /opt/apache-tomcat-6.0.26/conf/jk/mod_jk.conf-auto: Cannot load /etc/httpd/modules/mod_jk-1.2.28-httpd-2.2.X.so into server: /etc/httpd/modules/mod_jk-1.2.28-httpd-2.2.X.so: wrong ELF class: ELFCLASS32"
Does that mean that mod_jk-1.2.28-httpd-2.2.X.so has not been properly compiled?. What can I do about that?
Thanks
Peter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这意味着您有一个 32 位模块,但没有运行 32 位 httpd。从存储库安装正确的 gcc 软件包并重建模块。
It means that you have a 32-bit module, but are not running a 32-bit httpd. Install the proper gcc package from the repositories and rebuild the module.
为了解决这个问题,我使用 yum 安装了 Tomcat Connector:
To fix, I installed the Tomcat Connector using yum: