服务器500错误

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at admin@php.cn to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.


场景:PHPstudy 中的Apache+php+mysql

使用curl获取自行封装的接口数据,实现client与server分离,保证server信息的保密性的前提,调用数据,但遇见循环大量调用该接口会出现报错

脚本运行时间设置无限
内存无限
curl封装的时间也是延长


原因:FastCGI的服务器通信超时

FcgidIOTimeout 384  #运行超时设置
试图读或者写的Fastcgi应用将在设置的时间内等待进行工作

在apache中更改时长,再重启,但是这只是暂时处理,应为这样会使PHP进程常驻时间长,长期占用电脑资源,所以一般需要的时候才增加改变时长

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值