How to determine whether php-fpm is started in Linux

WBOY
Release: 2022-06-01 10:21:57
Original
3708 people have browsed it

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
Copy after login

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
Copy after login

How to determine whether php-fpm is started in Linux

3. Open php-fpm

Command:

/usr/local/bin/php-fpm
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!