Failed to start The PHP FastCGI Process Manager.

报错如下:

Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.

2月 25 21:49:00 nginx systemd1: Starting The PHP FastCGI Process Manager...

2月 25 21:49:00 nginx php-fpm86494: 25-Feb-2025 21:49:00 ERROR: unable to bind listening socket for address '127.0.0.1:9000': Addr...use (98)

2月 25 21:49:00 nginx php-fpm86494: 25-Feb-2025 21:49:00 ERROR: FPM initialization failed

2月 25 21:49:00 nginx systemd1: php-fpm.service: main process exited, code=exited, status=78/n/a

2月 25 21:49:00 nginx systemd1: Failed to start The PHP FastCGI Process Manager.

2月 25 21:49:00 nginx systemd1: Unit php-fpm.service entered failed state.

2月 25 21:49:00 nginx systemd1: php-fpm.service failed.

Hint: Some lines were ellipsized, use -l to show in full.

root@nginx /usr/local/nginx/html#systemctl start php-fpm

解决方法

查看端口:

bash 复制代码
ss -tunlp | grep php

发现进程中已经有php-fpm存在,将其杀死

杀死进程

bash 复制代码
pkill -9 php-fpm

systemctl start php-fpm
systemctl status php-fpm

第二中报错可能

在编辑/etc/php-fpm.d/www.conf文件时,user=nginx,但是linux系统中没有创建nginx用户

使用如下方法解决

bash 复制代码
id nginx
useradd -M -s /usr/sbin/nologin nginx
id nginx
systemctl restart php-fpm
systemctl status php-fpm
相关推荐
大圣编程3 小时前
Java 多维数组详解
java·开发语言
殳翰6 小时前
下服务器端开发流程及相关工具介绍(C++)
开发语言·c++
落寞的星星6 小时前
这个对象就包含了已经转换好的DFA和各种词法分析器运转所需要的参数。下一步,我们就可以用ScannerInfo对象创建出Scanner对象,请看下面的代码:
开发语言·c#
nothing&nowhere6 小时前
用 Python 做问卷数据清洗:无效样本检测与处理实战
开发语言·python·数据清洗·数据处理·问卷星·问卷星脚本·刷问卷
2601_961593427 小时前
Rust 开发环境配置繁琐?RustRover 开箱即用搞定编码调试
开发语言·后端·macos·rust
HZZD_HZZD7 小时前
DL/T 645-2026新国标深度解读与智能电表协议适配实战:从帧结构变化到Java采集器升级的全链路改造方案
java·开发语言
多加点辣也没关系9 小时前
JavaScript|第4章:类型转换
开发语言·javascript
聪慧的水蜜桃9 小时前
【YFIOs】用C#开发硬件之设备上云
开发语言·c#
yqcoder10 小时前
httpOnly 是什么,又有什么用?
开发语言·前端·javascript
wuqingshun31415911 小时前
重写equals而不重写hashCode,会出什么问题?
java·开发语言