工作约一天后,卷曲errno = 6 [英] Curl errno=6 after about a day of work

查看:82
本文介绍了工作约一天后,卷曲errno = 6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两天前,我注意到我们的服务器(nginx + php-fpm)停止工作,因为curl函数启动返回CURLE_COULDNT_RESOLVE_HOST.重新启动后,everinging重新工作.但是现在,经过大约一天的工作,我注意到了同样的错误.

Two days ago I've noticed that our servers (nginx + php-fpm) stopped working because curl function start return CURLE_COULDNT_RESOLVE_HOST. After reboot everyting become working again. But now, after about a day of work, I've noticed the same error.

当我SSH到服务器时,$ wget http://example.com正在工作.我还可以从以cli运行的php请求 http://example.com .但是,当我尝试从Web服务器中的php中卷曲 http://example.com 时,我得到了CURLE_COULDNT_RESOLVE_HOST.

When I ssh to a server $ wget http://example.com is working. I can also request http://example.com from php running as cli. But when I try to curl http://example.com from php in web server I get CURLE_COULDNT_RESOLVE_HOST.

我再次重新启动,现在可以正常工作了...但是我认为明天我将不得不重新启动一次.

I made reboot again and it is working now... But I think that tomorrow I will have to made another reboot.

关于根本原因的任何想法吗?

Any ideas about root cause?

推荐答案

您是否有机会使用Ubuntu?

Are you using Ubuntu by any chance?

Ubuntu不久前推送了一个更新,以还原他们在昨天的更新中所做的更改,这些更改破坏了服务并需要重新启动所有PHP-FPM进程

Ubuntu pushed an update a short time ago to revert the changes they made in yesterday's update which broke the services and required a restart all PHP-FPM processes

https://www.ubuntu.com/usn/usn-3239-2 /

这篇关于工作约一天后,卷曲errno = 6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆