大佬教程收集整理的这篇文章主要介绍了linux – PHP-FPM,Monit,ping / status页面,Apache,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
check process PHP5-fpm with pidfile "/var/run/PHP5-fpm.pid" start = "/etc/init.d/PHP5-fpm start" stop = "/etc/init.d/PHP5-fpm stop" if Failed port 80 protocol http then restart
从我可以收集的内容来看,更好的方法是使用FPM ping URL,但我无法使用Apache激活它们.
除了设置FPM池选项之外,Apache / PHP-FPM中究竟需要做什么:
pm.status_path = / status
ping.path = / ping
我希望能让我简单地去:
拉起状态页面.当我转到此URL时,我收到404错误.我假设我需要某种处理程序来重定向/ status和/ ping到我的本地主机端口9000上的FPM服务器.我该怎么做?
LOCATIOn ~ ^/(status|ping)${ include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILename $fastcgi_script_name; allow 127.0.0.1; deny all; }
然后,这允许我卷曲localhost / status.
您还需要更改您的PHP-fpm conf(我的是www.conf)并取消注释行:
pm.status_path = /status ping.path = /ping
以上是大佬教程为你收集整理的linux – PHP-FPM,Monit,ping / status页面,Apache全部内容,希望文章能够帮你解决linux – PHP-FPM,Monit,ping / status页面,Apache所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。