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 systemd[1]: Starting The PHP FastCGI Process Manager...

2月 25 21:49:00 nginx php-fpm[86494]: [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-fpm[86494]: [25-Feb-2025 21:49:00] ERROR: FPM initialization failed

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

2月 25 21:49:00 nginx systemd[1]: Failed to start The PHP FastCGI Process Manager.

2月 25 21:49:00 nginx systemd[1]: Unit php-fpm.service entered failed state.

2月 25 21:49:00 nginx systemd[1]: 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 ![](https://i-blog.csdnimg.cn/direct/50f605e93425476fa249c683df5e440f.png) ### **解决方法** 查看端口: ```bash ss -tunlp | grep php ``` ![](https://i-blog.csdnimg.cn/direct/d7baf583d25b431b8b303c1c628ebab7.png) 发现进程中已经有php-fpm存在,将其杀死 杀死进程 ```bash pkill -9 php-fpm systemctl start php-fpm systemctl status php-fpm ``` ![](https://i-blog.csdnimg.cn/direct/83e243e820e04aae834f61911d672d1c.png) ### 第二中报错可能 在编辑/etc/php-fpm.d/www.conf文件时,user=nginx,但是linux系统中没有创建nginx用户 ![](https://i-blog.csdnimg.cn/direct/60a856f802734d12a04943f61bd68fb2.png) 使用如下方法解决 ```bash id nginx useradd -M -s /usr/sbin/nologin nginx id nginx systemctl restart php-fpm systemctl status php-fpm ``` ![](https://i-blog.csdnimg.cn/direct/e09c7afd91bd414687e0fbfa42019091.png)

相关推荐
1uther7 小时前
Unity核心概念⑨:Screen
开发语言·游戏·unity·c#·游戏引擎
C_Liu_8 小时前
C++:类和对象(下)
开发语言·c++
coderxiaohan8 小时前
【C++】类和对象1
java·开发语言·c++
阿幸软件杂货间8 小时前
Office转PDF转换器v1.0.py
开发语言·pdf·c#
扯淡的闲人8 小时前
多语言编码Agent解决方案(5)-IntelliJ插件实现
开发语言·python
丑小鸭是白天鹅9 小时前
Kotlin协程详细笔记之切线程和挂起函数
开发语言·笔记·kotlin
sali-tec9 小时前
C# 基于halcon的视觉工作流-章34-环状测量
开发语言·图像处理·算法·计算机视觉·c#
java搬砖工-苤-初心不变9 小时前
基于 lua_shared_dict 的本地内存限流实现
开发语言·junit·lua
charlie1145141919 小时前
Kotlin 的 apply / with / run 详解
开发语言·kotlin·程序设计·面对对象
Tiger_shl9 小时前
【层面一】C#语言基础和核心语法-02(反射/委托/事件)
开发语言·c#