vps php-fpm 崩溃后处理记录

777 查看

1. 重启vps

reboot

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: 183.14.85.153, server: xxx.com, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "xxx.com"

4. 启动php-fpm

/etc/init.d/php-fpm start

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