« Php fpm » : différence entre les versions

Aucun résumé des modifications
Aucun résumé des modifications
Ligne 23 : Ligne 23 :
;php_admin_value[error_log] = /var/log/fpm-test.local-php56.log
;php_admin_value[error_log] = /var/log/fpm-test.local-php56.log
;php_admin_value[memory_limit] = 32M
;php_admin_value[memory_limit] = 32M
</pre>
== Surveillance ==
Filtrer et afficher uniquement les services PHP-FPM dans la sortie de systemd-cgtop
=== Expression régulière avec grep -E ===
<syntaxhighlight lang="bash" copy>sudo systemd-cgtop | grep -E -i 'php[0-9.]+-fpm'</syntaxhighlight>
=== Filtre multiple ===
<syntaxhighlight lang="bash" copy>sudo systemd-cgtop | grep -i -e 'php.*fpm' -e 'fpm.service'</syntaxhighlight>
=== Avec awk (plus précis) ===
<syntaxhighlight lang="bash" copy>sudo systemd-cgtop | awk 'tolower($0) ~ /php.*fpm/'</syntaxhighlight>
=== Pour une surveillance en temps réel ===
<syntaxhighlight lang="bash" copy>watch -n 1 "sudo systemd-cgtop --iterations=1 | grep -E -i 'php[0-9.]+-fpm'"</syntaxhighlight>


</pre>


[[category:Php]]
[[category:Php]]