![cURL 错误 7:无法连接到本地主机端口 443:连接被拒绝](https://linux22.com/image/783458/cURL%20%E9%94%99%E8%AF%AF%207%EF%BC%9A%E6%97%A0%E6%B3%95%E8%BF%9E%E6%8E%A5%E5%88%B0%E6%9C%AC%E5%9C%B0%E4%B8%BB%E6%9C%BA%E7%AB%AF%E5%8F%A3%20443%EF%BC%9A%E8%BF%9E%E6%8E%A5%E8%A2%AB%E6%8B%92%E7%BB%9D.png)
操作系统版本:Ubuntu 20.04 x86_64 Plesk 版本:Plesk Obsidian 18.0.47.5
你好,
我在 Plesk 上运行 XenForo Forum,该 Plesk 运行在 Cloudflare 后面。我收到以下错误日志,它显示到端口 443 上的 localhost 的 curl 连接被拒绝。 https://prnt.sc/hN7k9PsJUCA-
所有到 localhost、127.0.0.1 和 0.0.0.0 的 curl 都被拒绝:
root@srv:~# curl -vv localhost:443
* Trying ::1:443...
* TCP_NODELAY set
* connect to ::1 port 443 failed: Connection refused
* Trying 127.0.0.1:443...
* TCP_NODELAY set
* connect to 127.0.0.1 port 443 failed: Connection refused
* Failed to connect to localhost port 443: Connection refused
* Closing connection 0
curl: (7) Failed to connect to localhost port 443: Connection refused
root@srv:~# curl -vv 127.0.0.1:443
* Trying 127.0.0.1:443...
* TCP_NODELAY set
* connect to 127.0.0.1 port 443 failed: Connection refused
* Failed to connect to 127.0.0.1 port 443: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 127.0.0.1 port 443: Connection refused
root@srv:~# curl -vv 0.0.0.0:443
* Trying 0.0.0.0:443...
* TCP_NODELAY set
* connect to 0.0.0.0 port 443 failed: Connection refused
* Failed to connect to 0.0.0.0 port 443: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 0.0.0.0 port 443: Connection refused
UFW 防火墙已禁用:
root@srv:~# sudo ufw status
Status: inactive
netstat 显示端口 443 处于活动状态并且处于监听状态: https://prnt.sc/CqBFLdPYneBB
为了确保万无一失,我还关闭了 CF 防火墙上的“安全级别”。 https://prnt.sc/S_z-4jgTaNCU
无论我尝试过什么,不幸的是迄今为止都没有成功。
因此,我将非常感激任何能解决此问题的提示或解决方案。
问候。