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)

相关推荐
鸡吃丸子1 小时前
React Native入门详解
开发语言·前端·javascript·react native·react.js
盼哥PyAI实验室1 小时前
Python YAML配置管理:12306项目的灵活配置方案
开发语言·python
漂亮的小碎步丶1 小时前
【启】Java中高级开发51天闭关冲刺计划(聚焦运营商/ToB领域)
java·开发语言
hd51cc1 小时前
MFC运行时
开发语言·mfc
wniuniu_2 小时前
ceph一些细节处理
开发语言·ceph
hd51cc2 小时前
异常处理(Exception Handling)
开发语言
SadSunset2 小时前
(19)Bean的循环依赖问题
java·开发语言·前端
JIngJaneIL2 小时前
基于Java+ vue图书管理系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot·后端
Wpa.wk2 小时前
自动化测试-鼠标+键盘操作 - Actions高级控件
java·开发语言·测试工具·自动化·计算机外设·actions·高级控件
一水鉴天2 小时前
整体设计 定稿 之25 重构和改造现有程序结构 之1 (codebuddy)
开发语言·人工智能·重构