How to check if php-fpm is installed and running correctly?

前端 未结 2 1913
忘了有多久
忘了有多久 2021-02-15 19:47

As in title, how to check php-fpm status? Is it running? How many request serving? Thanks.

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-15 20:38

    You can get the SAPI with

    • php_sapi_name — Returns the type of interface between web server and PHP

    Returns the interface type, as a lowercase string. Although not exhaustive, the possible return values include aolserver, apache, apache2filter, apache2handler, caudium, cgi (until PHP 5.3), cgi-fcgi, cli, continuity, embed, isapi, litespeed, milter, nsapi, phttpd, pi3web, roxen, thttpd, tux, and webjames.

    For status and how many requests are served you might want to use exec or system.

提交回复
热议问题