gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 22:07:23 36 4
gpt4 key购买 nike

我在一台新服务器上安装了 CF2018,它已经安装并正在运行,如果我运行 ps aux | 就可以看到它。 ack -i 冷聚变

$ 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 setup 中设置了目录,但我现在遇到了这些错误:

$ 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 正在运行并且该端口可以访问

更新 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 -->

最佳答案

皮特,

操作系统和网络服务器的版本是什么?

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

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

..并且不需要运行冷融合过程来配置连接器。

关于apache - Centos 7 上的 Coldfusion 2018 无法设置 Apache 连接器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58365989/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com