用php处理xml文件,大概有4千条数据,导致nginx崩溃
2015/03/03 19:58:08 [error] 13184#13204: *13 FastCGI sent in stderr: "PHP Strict Standards: Non-static method DOMDocument::loadXML() should not be called statically in E:\WWW\xml\index1.php on line 4
PHP Fatal error: Maximum execution time of 0 seconds exceeded in E:\WWW\xml\index1.php on line 12" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xml/index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
2015/03/03 19:58:15 [error] 13184#13204: *13 FastCGI sent in stderr: "PHP Strict Standards: Non-static method DOMDocument::loadXML() should not be called statically in E:\WWW\xml\index1.php on line 4
PHP Fatal error: Maximum execution time of 0 seconds exceeded in E:\WWW\xml\index1.php on line 12" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xml/index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
2015/03/03 20:02:09 [error] 12856#10492: *1 FastCGI sent in stderr: "PHP Strict Standards: Non-static method DOMDocument::loadXML() should not be called statically in E:\WWW\xml\index1.php on line 4
PHP Fatal error: Maximum execution time of 0 seconds exceeded in E:\WWW\xml\index1.php on line 12" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xml/index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
2015/03/03 20:02:12 [error] 12856#10492: *1 FastCGI sent in stderr: "PHP Strict Standards: Non-static method DOMDocument::loadXML() should not be called statically in E:\WWW\xml\index1.php on line 4
PHP Fatal error: Maximum execution time of 0 seconds exceeded in E:\WWW\xml\index1.php on line 12" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xml/index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
2015/03/03 20:07:25 [error] 13512#9116: *1 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: 127.0.0.1, server: localhost, request: "GET /xml/index1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
这些是nginx,错误日志,Maximum execution time of 0 seconds exceeded,报这个错误,直接把php安全模式关闭就行。
特别纠结,但是忽然想到,在cmd下运行php脚本如何,于是把php加入到环境变量,运行 php index.php。脚本开始执行,虽然一次无法处理完所有的url.,但是我大概执行了8次左右的php index.php 。果然成功了。哈哈哈。
本文出自 “我的博客” 博客,请务必保留此出处http://ningyuqiao.blog.51cto.com/5581274/1616984
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。