- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经在 CentOS 7 VM 上安装了 Apache 2.4 和 Tomcat 8,两者都运行良好。
现在我想安装和配置 mod_jk,一个用于使 apache tomcat 应用程序与 httpd 服务器交互的 apache httpd 模块。
我已尝试按照此分步教程进行操作 http://www.diegoacuna.me/installing-mod_jk-on-apache-httpd-in-centos-6-x7-x/下载最新的mod_jk版本源代码并在我的CentOS7系统上编译。
我已经配置了我的 Tomcat 安装 service.xml
文件,然后我创建了一个/etc/httpd/conf.d/mod_jk.conf
其内容是
LoadModule jk_module "/etc/httpd/modules/mod_jk.so"
JkWorkersFile /etc/httpd/conf/workers.properties
# Where to put jk shared memory
JkShmFile /var/run/httpd/mod_jk.shm
# Where to put jk logs
JkLogFile /var/log/httpd/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
#JkRequestLogFormat "%w %V %T"
#JkEnvVar SSL_CLIENT_V_START worker1
然后是一个文件/etc/httpd/conf/workers.properties
其内容是
workers.apache_log=/var/log/httpd
worker.list=app1Worker
worker.stat1.type=status
worker.app1Worker.type=ajp13
worker.app1Worker.host=192.168.33.10 #put your app host here
worker.app1Worker.port=8009
最近,一个文件 /etc/httpd/conf.d/192.168.33.10.conf
其内容是
<VirtualHost *:80>
ServerName 192.168.33.10
ServerAdmin admin@myhost.com
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
CustomLog /var/log/httpd/192.168.33.10_access.log combined
ErrorLog /var/log/httpd/192.168.33.10_error.log
<IfModule mod_jk.c>
JkMount /* app1Worker
</IfModule>
</VirtualHost>
然后我停止并启动了 Apache 和 Tomcat,情况是:
http://192.168.33.10: ok Apache is working
http://192.168.33.10:8080: ok, Tomcat is working
http://192.168.33.10:8080/examples: ok, Tomcat is working
http://192.168.33.10/examples: KO .... ?????
可能我的配置有一些错误,但我不知道在哪里:任何建议将不胜感激
最佳答案
从存储库中查看带有 mod_jk 的 ubuntu 安装(我从不费心从源代码编译),我发现以下几行与您的相关但不相同:
LoadModule jk_module "/etc/httpd/modules/mod_jk.so"
而且,重要的是:
<IfModule jk_module>
你的问题描述听起来像你的 <IfModule mod_jk.c>
不考虑 block
关于java - 在 CentOS7 上配置 mod_jk 与 Tomcat 8 和 Apache 2.4 通信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53995535/
我正在 Windows 服务器中配置 httpd 以实现负载平衡。配置步骤之一是下载 tomcat connector for windows 并将 mod_jk.so 文件放入 modules 文件
我在 Ubuntu 下工作。 每次我重新启动 apache2 时,它都会告诉我 jk_module 已经加载,所以它会跳过它。 问题:我认为我配置错误,所以我对其进行了更改,但由于未重新加载,因此未进
是否可以在 mod_jk 配置中构建具有多个级别的平衡器树? 例如有如下配置 worker.list=b, b1, b2 worker.t1.port=8001 worker.t1.host=loca
CentOS 6.7 版(最终版) \m 上的内核\r apache-tomcat-7.0.47 jdk1.7.0_45 tomcat-connectors-1.2.41 日志显示 mod_jk 已
除了/myUrl/apple.pdf,我有几个站点需要卸载/myUrl/.*.pdf。我最初写的 JkUnmount /myUrl/.*.pdf worker1 JkMount /myUrl/appl
我使用 Apache/2.2.14 (Worker MPM) + libapache2-mod-jk 1.2.28-2 + tomcat 6.0.24 让我的应用程序在一台机器上与 CGI 和 Jav
我正在运行一个 apache 网络服务器和一个 tomcat 服务器。我现在正试图从 apache 转发到 tomcat。两台服务器都在线并正在运行,并且安装了 mod_jk。但是当我尝试时我不断收到
我尽了一切可能使 Mod_jk 工作但没有成功。我尝试了多个 Apache 下载,尝试了我能找到的所有建议,包括检查特殊字符……Apache 和 Tomcat 都按预期工作,但仍然没有负载平衡,我不断
我正在尝试在 Apache 2.2.3 中配置 mod_jk 以连接 Tomcat 7。操作系统是 CentOS 5 完成所有配置后,在启动 Apache httpd 时我得到了 - Starting
我在 glassfish 服务器 4.1 版上运行 Oracle mapviewer。一直在8080端口运行没有问题,操作系统是Oracle Linux 4.1.12-61.1.22.el6uek.x
我正在使用 Apache 服务器在 Tomcat 7 中进行集群。它也工作正常。但是我有以下问题: 1) 我正在尝试监控 mod_jk 状态页面;但它给出了 404 错误。 2) 在日志中显示以下错误
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 10 年前。 Improve thi
我刚才让 mod-jk 工作,但在切换服务器和修改一些文件后,它不再工作了。我正在使用 mod_jk-1.2.28 和 JBoss 4.2.3 作为后端。 在 JBoss server.xml 文件中
我希望能够转发 url,例如 http://external_url.com/auth => http://internal_url.com:8080/app/auth https://externa
我已经创建了 tomcat 集群,负载平衡由 mod_jk 模块完成。我使用 xampp Apache 作为网络服务器。现在所有请求都直接发送给平衡器。而且我无法访问 htdocs 项目 我需要做的是
我正在同一台服务器上设置两个 Tomcat 实例,前面有一个 Apache mod_jk 负载平衡器。我一直在使用指南和 Apache Tomcat 文档,并坚持使用建议的基本设置。当我尝试启动任何
我添加了以下 mod-jk.conf 文件并将其包含在 httpd.conf 中: LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/
我们已经使用 mod_jk 将 Apache 与 Tomcat 一起运行了大约一个月,现在没有出现任何问题。今天早上,我开始在 mod_jk 日志文件中看到以下错误。 我对使用 mod_jk 还很陌生
我在 Ubuntu 12.10 上运行 Tomcat 并安装了一个网络应用程序。使用 Tomcat (localhost:8080/webappname) 访问时它工作正常。使用此方法对 servle
我正在使用 mod_jk 使 java 网络应用程序可通过 apache 网络服务器访问。我的 vhost.conf 看起来像这样: JkMount /web/* worker1 JkMount /g
我是一名优秀的程序员,十分优秀!