我一直在尝试配置apache以使用tomcat8一段时间。这是我在tomcat8 conf目录中的mod_jk.conf文件:
# Load mod_jk module
# Update this path to match your modules location
LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
# Update this path to match your conf directory location
# JkWorkersFile /etc/libapache2-mod-jk/workers.properties
# Where to put jk logs
# Update this path to match your logs directory location
JkLogFile /var/lib/tomcat8/logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel debug
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
tomcat不会开始,给予:
tomcat8.service的作业失败,因为控制进程退出并显示错误代码。
我查看了/ etc / apache,我实际上没有'模块' LoadModule指令要求的文件夹。我有' mods-available'和' mods-enabled' ...
在那些文件夹中我现在意识到我没有mod_jk.so我有jk.load和jk.conf。
两个问题:这个小混淆会阻止tomcat启动吗?什么是jk.load,我可以发誓我安装了mod_jk。我很困惑,因为jk.conf会像mod_jk那样说话:
# Configuration Example for mod_jk
# used in combination with Apache 2.2.x
<IfModule jk_module>
# We need a workers file exactly once
# and in the global server
JkWorkersFile /etc/libapache2-mod-jk/workers.properties
# Our JK error log
# You can (and should) use rotatelogs here
JkLogFile /var/log/apache2/mod_jk.log
# Our JK log level (trace,debug,info,warn,error)
JkLogLevel info
所以我需要更改tomcathome / conf中的mod_jk.conf来反映这个jk.load文件吗?或者安装actuall mod_jk?问题是我只能在周末工作,我忘记了我尝试从哪里安装mod_jk。