【问题标题】:cURL error 7: Failed to connect to 'x.xx.xxx.xx' port 9090: Connection refusedcURL 错误 7:无法连接到“x.xx.xxx.xx”端口 9090:连接被拒绝
【发布时间】:2021-05-23 18:20:41
【问题描述】:

cURL 错误 7:无法连接到“x.xx.xxx.xx”端口 9090:http://x.xx.xxx.xx:9090/plugins/restapi/v1/users 的连接被拒绝(参见 https://curl.haxx.se/libcurl/c/libcurl-errors.html

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

【问题讨论】:

  • 'myip' 不是正确的 URL 或 IP。
  • 用你的实际IP地址替换myip;查找 IP 地址取决于您的操作系统/版本。

标签: php curl xmpp openfire guzzle


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2017-11-09
    • 2023-03-26
    • 2017-05-12
    • 1970-01-01
    • 1970-01-01
    • 2019-02-19
    • 2023-02-17
    • 1970-01-01
    • 2021-11-18
    相关资源
    最近更新 更多