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)

相关推荐
星火开发设计9 分钟前
C++ multiset 全面解析与实战指南
开发语言·数据结构·c++·学习·set·知识
lsx2024061 小时前
Eclipse 添加书签
开发语言
易营宝1 小时前
高效的跨境电商广告优化系统:易营宝广告投放实操指南
大数据·开发语言·人工智能·php
superman超哥1 小时前
路由的艺术:Rust Web 框架中的高效匹配与类型安全提取
开发语言·rust·编程语言·rust web框架·rust路由
hqwest1 小时前
码上通QT实战22--趋势页面01-准备图表对象
开发语言·qt·qpainter·qss·painevent·qt绘图事件
hqwest2 小时前
码上通QT实战23--趋势页面02-图表模拟数据
开发语言·qt·qpainter·qt绘图·绘制曲线
Echo缘2 小时前
关于在.cpp文件中包含c的头文件,编译报错问题
c语言·开发语言
人道领域2 小时前
【零基础学java】(反射)
java·开发语言
ghie90902 小时前
GPS抗干扰算法MATLAB实现
开发语言·算法·matlab
ytttr8732 小时前
基于MATLAB解决车辆路径问题(VRP)
开发语言·matlab