小编Ada*_*nez的帖子

php-fpm 的监控配置

我正在努力为 php-fpm 找到一个有效的 monit 配置。

这是我尝试过的:

### Monitoring php-fpm: the parent process.
check process php-fpm with pidfile /var/run/php-fpm/php-fpm.pid
  group phpcgi # phpcgi group
  start program = "/etc/init.d/php-fpm start"
  stop program  = "/etc/init.d/php-fpm stop"
  ## Test the UNIX socket. Restart if down.
  if failed unixsocket /var/run/php-fpm.sock then restart
  ## If the restarts attempts fail then alert.
  if 3 restarts within 5 cycles then timeout
  depends on php-fpm_bin
  depends on php-fpm_init

## Test the php-fpm binary.
check file php-fpm_bin with path /usr/sbin/php-fpm …
Run Code Online (Sandbox Code Playgroud)

php-fpm monit

1
推荐指数
1
解决办法
5252
查看次数

标签 统计

monit ×1

php-fpm ×1