【发布时间】:2020-02-10 10:35:52
【问题描述】:
我在新服务器上安装了CF2018,已经安装并运行,运行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 正在运行并且该端口是可访问的
更新 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 -->
【问题讨论】:
标签: apache tomcat coldfusion centos