【发布时间】: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