我安装了apache tomcat连接器并成功configuration了所有设置,httpd服务也启动了,但是在加载网页的时候,却抛出了500个内部服务错误。 在错误日志中显示下面的错误:
Permission denied: apr_global_mutex_lock(jk_log_lock) failed Permission denied: apr_global_mutex_unlock(jk_log_lock) failed Permission denied: apr_global_mutex_lock(jk_log_lock) failed Permission denied: apr_global_mutex_unlock(jk_log_lock) failed
安装了Apache连接器版本: 1.2.42
安装httpd版本: 2.4.28
这是我的httpd.conf文件
LoadModule jk_module modules / mod_jk.so
JkWorkersFile /usr/local/apache/conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel emerg JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T %p %q %r %v %U"
我也将日志级别更改为信息,但仍然无法正常工作。
Googlesearch后我find了解决scheme。 需要卸载httpd服务器中的apache_ruid2模块。 上面的模块覆盖权限。 所以一旦禁用/卸载模块,错误得到纠正。