总的来说 出现这问题是因为对各个服务的配置文件的优化不到位
首先必须给nginx每个虚拟主机做错误日志
error_log xxx;
查看日志得到connect() to unix:/tmp/php-cgi.sock failed xxxxx........
如果是因为突然的网站访问量大导致那么一般是因为子进程数不足:
到php-fpm.conf找到max_children也就是子进程最大数改为:<value name="max_children">128</value>
待续。。
转载于:https://blog.51cto.com/superfly81/1317455