cURL 错误 7:无法连接到 'x.xx.xxx.xx' 端口 9090:连接被拒绝

问题描述

cURL 错误 7:无法连接到 'x.xx.xxx.xx' 端口 9090:连接被拒绝(请参阅 https://curl.haxx.se/libcurl/c/libcurl-errors.htmlhttp://x.xx.xxx.xx:9090/plugins/restapi/v1/users

大家好,我正在使用 gnello/PHP-openfire-restapi 通过向服务器发送 REST/HTTP 请求来管理 Openfire 实例。 它在本地主机上正常工作意味着它在 Openfire 上创建用户,但不在服务器主机上工作。

解决方法

显示此错误是因为端口 9090 被阻止。只需删除服务器端端口号 9090。