php-fpm 崩溃后处理记录

1. 重启 VPS


2. 启动 Nginx

service nginx start
Starting nginx... Enter PEM pass phrase:done

3. 启动nginx后发现依然无法访问网站,查看 nginx 错误日志,发现如下错误:

2014/12/01 22:48:54 [crit] 774#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client:, server:, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: ""

4. 启动php-fpm

/etc/init.d/php-fpm start

5. php 已启动,网站正常了。