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)

相关推荐
2401_891482171 分钟前
C++中的状态模式
开发语言·c++·算法
952364 分钟前
初识多线程
java·开发语言·jvm·后端·学习·多线程
m0_736914226 分钟前
服务器上pip install spacy卡住解决方法
开发语言·python
冰暮流星7 分钟前
javascript之回调函数
开发语言·前端·javascript
qq_4176950510 分钟前
基于C++的区块链实现
开发语言·c++·算法
电商API_1800790524711 分钟前
电商平台公开数据采集实践:基于合规接口的数据分析方案
开发语言·数据库·人工智能·数据挖掘·数据分析·网络爬虫
小陈工11 分钟前
2026年3月22日技术资讯洞察:数据库优化进入预测时代,网络安全威胁全面升级
java·开发语言·数据库·python·安全·web安全·django
ZHOUPUYU12 分钟前
从缓存到消息队列的全面应用,PHP与Redis深度实战
redis·缓存·php
2401_8942419213 分钟前
基于C++的反射机制探索
开发语言·c++·算法
xyq202415 分钟前
ionic 单选框详解
开发语言