Home  >  Article  >  Operation and Maintenance  >  How to determine whether php-fpm is started in Linux

How to determine whether php-fpm is started in Linux

WBOY
WBOYOriginal
2022-06-01 10:21:573951browse

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.

How to determine whether php-fpm is started in Linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

Check whether php-fpm is turned on and how to turn it on under Linux

1. Check whether php-fpm is turned on

Command:

ps -ef|grep php

The result of not being turned on is as follows:

How to determine whether php-fpm is started in Linux

This should be that it is not turned on.

2. Check the location of php-fpm

Command:

whereis php-fpm

How to determine whether php-fpm is started in Linux

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:

How to determine whether php-fpm is started in Linux

#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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn