如何修复“http_client.c(227) 创建套接字时出错” 错误,这可能是由操作系统引起的

发布于 2024-07-08 08:30:55 字数 169 浏览 10 评论 0原文

我正在我的 ubuntu 8.04 开发服务器上设置 wso2 php Web 服务框架。

但是我的网络服务失败了。 查看 wsf_client.log (框架的自定义日志)文件给了我问题中的错误。

我相信错误是从轴返回的,但我不知道如何修复它,并且将不胜感激任何正确方向的指针。

I am in the process of setting up the wso2 php web services framework on my ubuntu 8.04 development server.

However my webservice is failing. Looking into the wsf_client.log (custom log for the framework) file gives me the error in the question.

I belive the error is returned from axis, but I have no idea how to fix it and would be grateful for any pointers in the right direction.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

池予 2024-07-15 08:30:55

我只是在这里转发原始提问者发布在不同论坛上的信息:

解决了。

感谢您的回复,

我认为我的问题是 apache conf 中错误地设置了 localhost,

这导致套接字尝试自行连接。

无论如何,重新安装并更改本地主机为我解决了这个问题。

I'm only relaying information from the original questioner here, posted in a different forum:

solved.

thanks for the reply,

I think my issue was a wrongly setup localhost in the apache conf,

which caused the socket to try and connect in on itself.

anyways a reinstall and change of localhost fixed it for me.

云仙小弟 2024-07-15 08:30:55

你检查过/var/log/messages吗? 如果错误发生在操作系统级别,您可能会在那里找到更多线索。

Did you check /var/log/messages? If the error is at the OS level, you might have more clues in there.

夏日落 2024-07-15 08:30:55

在 Linux 上,您可以使用 strace 运行客户端:

strace myprogram 2>&1 > myprogram.log

并检查系统调用(如 socket())的日志。

On Linux, you can run your client with strace:

strace myprogram 2>&1 > myprogram.log

and examine log for system calls like socket().

暖风昔人 2024-07-15 08:30:55

也许您没有以 root 身份启动应用程序,但它设置为侦听低于 1024 的端口号?

Maybe you do not start the application as root but it is set to listen to a port number lower than 1024?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文