1、查看当前的PHP FastCGI进程数是否够用:netstat -anpo | grep “php-cgi” | wc -l

  如果实际使用的”FastCGI进程数”接近预设的”FastCGI进程数”,那么,说明”FastCGI进程数”不够用,需要增大。


2、部分PHP程序的执行时间超过了Nginx的等待时间,可以适当增加nginx.conf配置文件中FastCGI的timeout时间,例如:

……
http
{
……
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
……
}

相关文章:

  • 2022-12-23
  • 2021-10-19
  • 2021-10-19
  • 2021-08-19
  • 2022-02-08
  • 2021-12-06
猜你喜欢
  • 2021-10-19
  • 2021-10-19
  • 2022-12-23
  • 2018-01-15
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
相关资源
相似解决方案