亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

nginx 運行一兩天后,php文件就不響應了,但是css/html可以響應

nginx 運行一兩天后,php文件就不響應了,但是css/html可以響應

PHP
精慕HU 2019-03-16 18:02:19
fastcgi配置: location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } keepalive_timeout 65; #tcp_nodelay on; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_buffer_size 128k; fastcgi_buffers 4 128k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; 主要運行的php文件: curl_setopt_array($curl, array( CURLOPT_URL =>$url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_SSL_VERIFYPEER=>false, CURLOPT_SSL_VERIFYHOST=>false, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "content-type: image/jpeg; charset=UTF-8" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { header('Content-type:text/html;charset=utf-8'); echo "cURL Error #:" . $err; } else { echo $response; } unset($response); unset($curl); nginx 報錯信息: 2018/05/03 01:28:47 [error] 4832#4936: *2045 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 113.101.171.150, server: localhost, request: "GET /log.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.5211.me" 發起http請求時:返回狀態 cancle status
查看完整描述

3 回答

?
30秒到達戰場

TA貢獻1828條經驗 獲得超6個贊

php掛了??纯词遣皇莾却嫘孤?。

查看完整回答
反對 回復 2019-03-18
?
臨摹微笑

TA貢獻1982條經驗 獲得超2個贊

為啥那么多fastcgi配置寫在最后

查看完整回答
反對 回復 2019-03-18
?
MYYA

TA貢獻1868條經驗 獲得超4個贊

你看下php cgi進程還在不在,可能掛了, linux下一般是php-fpm windows下可能是php-cgi 看下進程還在不在,還能不能運行程序

查看完整回答
反對 回復 2019-03-18
  • 3 回答
  • 0 關注
  • 927 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號