Home > Backend Development > PHP Tutorial > nginx - php-cgi自动重启

nginx - php-cgi自动重启

WBOY
Release: 2016-06-06 20:51:03
Original
1307 people have browsed it

我在Linode的VPS上装了php5.4.10 + Nginx,然后用 php-cgi
但是我发现php-cgi的进程经常莫名挂掉,在Log里也看不出所以然,我只能写了一个shell脚本没10mins用ps auxww检查一次,挂了就重启
请问有没有什么办法排查这个问题?
还有,有没有办法可以让cgi无缝重启?

回复内容:

我在Linode的VPS上装了php5.4.10 + Nginx,然后用 php-cgi
但是我发现php-cgi的进程经常莫名挂掉,在Log里也看不出所以然,我只能写了一个shell脚本没10mins用ps auxww检查一次,挂了就重启
请问有没有什么办法排查这个问题?
还有,有没有办法可以让cgi无缝重启?

用 cgi 模式的话为什么不用 php-fpm 来管理 php-cgi 呢,php-cgi 挂掉是很正常的

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template