[英]PHP CURL suddenly stops working with error:- Could not resolve host
幾個月以來,我們一直在使用相同的腳本和配置,並且運行良好。 幾個小時前,卷曲突然開始失敗,並出現無法解析主機的錯誤。 我用郵遞員測試了主機,它工作正常。 此外,我將主機更改為 google.com,但出現相同的錯誤。
沒有在一夜之間更改任何機器或服務器配置。
任何指示..這對我們來說是生產停止。
這是 curl 的錯誤日志
array(26) {
["url"]=>
string(37) "https://google.com/callback/abcd"
["content_type"]=>
NULL
["http_code"]=>
int(0)
["header_size"]=>
int(0)
["request_size"]=>
int(0)
["filetime"]=>
int(-1)
["ssl_verify_result"]=>
int(0)
["redirect_count"]=>
int(0)
["total_time"]=>
float(0.000121)
["namelookup_time"]=>
float(0)
["connect_time"]=>
float(0)
["pretransfer_time"]=>
float(0)
["size_upload"]=>
float(0)
["size_download"]=>
float(0)
["speed_download"]=>
float(0)
["speed_upload"]=>
float(0)
["download_content_length"]=>
float(-1)
["upload_content_length"]=>
float(-1)
["starttransfer_time"]=>
float(0)
["redirect_time"]=>
float(0)
["redirect_url"]=>
string(0) ""
["primary_ip"]=>
string(0) ""
["certinfo"]=>
array(0) {
}
["primary_port"]=>
int(0)
["local_ip"]=>
string(0) ""
["local_port"]=>
int(0)
}
string(34) "Could not resolve host: google.com"
我嘗試重新啟動 apache2 以及我的 PHP-FHM。 沒有任何幫助。
我可以在重新啟動我的 VM 后解決這個問題。 發生的事情是我的虛擬機磁盤用完了。 這導致許多進程停止。 當磁盤最終可用時,除了一個 kprocess 之外,大多數進程都返回了。 重新啟動虛擬機完成了這項工作。 我不知道如何在不重新啟動機器的情況下修復它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.