Centos 7上的Coldfusion 2018无法设置Apache连接器 [英] Coldfusion 2018 on Centos 7 failing to setup Apache connector
问题描述
我已在新服务器上安装CF2018,该服务器已安装并正在运行,如果运行ps aux | ack -i coldfusion
I've installing CF2018 on a new server, which is installed and running, I can see it if I run 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
更新
我显然已经破坏了某些内容,因此我删除了先前的错误,但是连接器仍然有问题.
I had clearly broken something so I've removed earlier errors, but I'm still getting issues with the connector.
我从/etc/httpd/conf
中删除了与mod_jk
有关的所有参考和文件,重新安装了CF,然后重新运行了连接器.
I have removed all references and files relating to mod_jk
from /etc/httpd/conf
, reinstalled CF then re-ran the connector.
使用以下命令已成功安装:
It's installed successfully with this command:
$ sudo ./wsconfig -ws Apache -dir /etc/httpd/conf
我在/opt/coldfusion2018/config/wsconfig/1
设置中有目录,但现在遇到这些错误:
I have the dir at /opt/coldfusion2018/config/wsconfig/1
setup but I'm now getting these errors:
$ 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
I have no idea where port 8018 has come from, I thought tomcat used 8500 by default
更新2
如果最后我用:8500
访问我的网站,我可以进入CFIDE,因此CF正在运行并且可以访问该端口
If I visit my site with :8500
on the end I can get into the CFIDE, so it's CF is running and that port is accessible
更新3
我在server.xml
文件中找到了此文件,尝试将端口设置为8009和8018,这似乎与mod_jk.log中的错误没有区别
I've found this in my server.xml
file, tried setting the port to both 8009 and 8018 and it seems to make no difference to the errors in the 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替我研究了此问题,并对其进行了修复(基于我所有的信息) d从piyush的答案中找到)
The problem was SELinux blocking port 8018, I actually asked my hosting provider Secura to look into this for me and they fixed it (based on all the information I'd found from piyush's answer)
我必须允许SELinux使用端口8018
I had to allow port 8018 in SELinux
semanage port -a -t http_port_t -p tcp 8018
这篇关于Centos 7上的Coldfusion 2018无法设置Apache连接器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!