Home>Article>Operation and Maintenance> How to determine whether php-fpm is started in Linux
In Linux, you can use the ps command to determine whether "php-fpm" is started; this command is used to display the specified process status, the syntax is "ps -ef|grep php"; if "php-fpm "has been started, the status of the "php-fpm" process startup will be displayed.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
1. Check whether php-fpm is turned on
Command:
ps -ef|grep php
The result of not being turned on is as follows:
This should be that it is not turned on.
2. Check the location of php-fpm
Command:
whereis php-fpm
3. Open php-fpm
Command:
/usr/local/bin/php-fpm
4. Enter the command ps -ef|grep php again to check whether
is already enabled. Result of opening:
#This is already enabled.
Recommended learning:Linux video tutorial
The above is the detailed content of How to determine whether php-fpm is started in Linux. For more information, please follow other related articles on the PHP Chinese website!