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

我已在新服务器上安装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

我显然已经破坏了某些内容,因此删除了先前的错误,但是仍然遇到连接器问题。

我已删除有关的所有引用和文件mod_jk/etc/httpd/conf,重新安装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

如果:8500最终访问我的站点,我可以进入CFIDE,因此CF正在运行并且可以访问该端口

我在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 -->

回答:

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

我必须在SELinux中允许端口8018

semanage port -a -t http_port_t -p tcp 8018

以上是 Centos 7上的Coldfusion 2018无法设置Apache连接器 的全部内容, 来源链接: utcz.com/qa/402569.html

回到顶部