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
相关推荐
海兰35 分钟前
【 Python 量化交易】第3章:金融基础概念
开发语言·python·金融
一木 之林44 分钟前
三.C++ 内存管理(进阶)(二)
开发语言·arm开发·c++
吴声子夜歌1 小时前
Java——类、对象及方法(一)
java·开发语言
阿里嘎多学长1 小时前
2026-08-29 GitHub 热点项目精选
开发语言·程序员·github·代码托管
এ慕ོ冬℘゜1 小时前
JavaScript学习心得:从只会语法,到真正会写业务逻辑
开发语言·javascript·ecmascript
2601_966949651 小时前
五档盘口数据对量化交易有什么价值?从信号判断到策略风险的完整分析
开发语言·人工智能·python·数据分析·量化·股票数据·quantdash
小吴学不废Java2 小时前
Python 基础语法
开发语言·python
布莱克6052 小时前
队列详解:定义、分类、应用场景及与栈的区别(C/C++ 代码讲解)
c语言·开发语言·c++·队列
CPETW2 小时前
USB TO I2C_(Excel)_Scan ---- 1000KHz总线速率测试_A
c语言·开发语言·网络·科技·单片机
2601_962203512 小时前
【SpringBoot3】面向切面 AspectJ AOP 使用详解
开发语言·前端·python