【发布时间】:2012-01-20 13:36:36
【问题描述】:
我正在尝试使用 Monit 监视我的 FPM 守护程序,并且由于重生和 PID 更改,我假设以下不是最佳技术?
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 服务器。我该怎么做?
【问题讨论】: