简体   繁体   English

什么可能突然关闭PHP-FPM?

[英]What could suddenly turn off PHP-FPM?

I have a website with NGINX & PHP-FPM. 我有一个NGINX和PHP-FPM的网站。 A few hours ago I checked my website and NGINX throw an error. 几个小时前我检查了我的网站,NGINX抛出错误。 My website was down. 我的网站失灵了。

I check the status pages of NGINX and the fpm pool, and the fpm status page did not load. 我检查NGINX和fpm池的状态页面,并且没有加载fpm状态页面。 Then I checked the status of PHP-FPM with "service php5-fpm status" and it showed that it wasn't running. 然后我用“service php5-fpm status”检查了PHP-FPM的状态,结果显示它没有运行。 So I restarted it. 所以我重新开始了。

Right now everything is fine, and commonly nothing wrong happens, but now I want to know what could possibly turn off php-fpm? 现在一切都很好,通常没有错误发生,但现在我想知道什么可能关闭php-fpm? Could it be a script? 它可以是一个脚本吗? A memory problem? 记忆问题? Is it a common practice to have a script controlling that PHP-FPM is running? 是否有一个脚本控制PHP-FPM正在运行?

Thanks you! 谢谢!

谁知道,这就是为什么我们系统管理员安装监控解决方案和24小时文本通知,并安装木偶和模板之类的东西,以确保某些服务始终运行...您将在www.serverfault.com上获得更详细的答案 - 这是一个编程网站。

Probably a segmentation fault in a php child. 可能是php孩子的分段错误。 Do your php-fpm logs show segmentation faults or other errors? 你的php-fpm日志是否显示分段错误或其他错误?

Yes, it's common practice to have a service running that checks to make sure php-fpm and other services are running. 是的,通常的做法是让服务运行检查以确保php-fpm和其他服务正在运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM