Centos 7 上的 Coldfusion 2018 无法设置 Apache 连接器

Coldfusion 2018 on Centos 7 failing to setup Apache connector

我在新的服务器上安装了CF2018,已经安装好了运行ning,如果运行ps aux | ack -i coldfusion

可以看到
$ cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)

$ httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built:   Jul 29 2019 17:18:49

更新

我显然已经损坏了一些东西,所以我已经删除了之前的错误,但我仍然遇到连接器问题。

我已经从 /etc/httpd/conf 中删除了与 mod_jk 相关的所有参考和文件,重新安装了 CF,然后重新 运行 连接器。

使用此命令已成功安装:

$ sudo ./wsconfig -ws Apache -dir /etc/httpd/conf

我在 /opt/coldfusion2018/config/wsconfig/1 设置了目录,但我现在收到这些错误:

$ pwd
/opt/coldfusion2018/config/wsconfig/1

$ tail mod_jk.log
[error] ajp_service::jk_ajp_common.c (3000): (cfusion) connecting to tomcat failed (rc=-3, errors=583, client_errors=0).
[info] jk_open_socket::jk_connect.c (816): connect to ::1:8018 failed (errno=13)
[info] ajp_connect_to_endpoint::jk_ajp_common.c (1140): (cfusion) Failed opening socket to (::1:8018) (errno=13)
[error] ajp_send_request::jk_ajp_common.c (1811): (cfusion) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=13)
[info] ajp_service::jk_ajp_common.c (2979): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[info] jk_open_socket::jk_connect.c (816): connect to ::1:8018 failed (errno=13)
[info] ajp_connect_to_endpoint::jk_ajp_common.c (1140): (cfusion) Failed opening socket to (::1:8018) (errno=13)
[error] ajp_send_request::jk_ajp_common.c (1811): (cfusion) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=13)
[info] ajp_service::jk_ajp_common.c (2979): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[error] ajp_service::jk_ajp_common.c (3000): (cfusion) connecting to tomcat failed (rc=-3, errors=584, client_errors=0).

我不知道8018端口是从哪里来的,我以为tomcat默认使用8500

更新 2

如果我以 :8500 访问我的站点,我可以进入 CFIDE,所以它的 CF 是 运行ning 并且该端口可以访问

更新 3

我在我的 server.xml 文件中找到了这个,尝试将端口设置为 8009 和 8018,这似乎对 mod_jk.log

中的错误没有影响

    <!-- Define an AJP 1.3 Connector on port 8009 -->
        <!-- begin connector -->
    <Connector port="8009" packetSize="65535" protocol="AJP/1.3"  redirectPort="8451" tomcatAuthentication="false" maxThreads="500" connectionTimeout="60000"/>
    <!-- end connector -->

皮特,

OS 和网络服务器的版本是什么?

您是否尝试像这样显式地传递 dir 以外的参数:

sudo ./wsconfig -ws Apache /opt/apache2/conf -bin /opt/apache2/bin/httpd -script /opt/apache2/bin/apachectl -dir -v

..冷熔过程不需要 运行 即可配置连接器。

8018 是连接器用来与 tomcat 通信的默认 AJP 端口。 8500 是您在访问 CF 管理控制台时使用的默认 HTTP 端口。 您最初在配置连接器时报告了错误。就这样解决了吗。 您是否检查了 wsconfig 日志以查看配置连接器是否存在错误。

您最近共享的 modjk 日志摘录仅表明 CF 没有 运行,或者至少没有在默认 AJP 端口上侦听。

问题是 SELinux 阻塞了端口 8018,我实际上让我的托管服务提供商 Secura 帮我调查了这个问题,他们修复了它(基于我从 piyush 的回答中找到的所有信息)

我必须在 SELinux 中允许端口 8018

semanage port -a -t http_port_t -p tcp 8018