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)

相关推荐
CodeCraft Studio1 小时前
PDF处理控件Aspose.PDF教程:使用 Python 将 PDF 转换为 Base64
开发语言·python·pdf·base64·aspose·aspose.pdf
零点零一1 小时前
VS+QT的编程开发工作:关于QT VS tools的使用 qt的官方帮助
开发语言·qt
lingchen19064 小时前
MATLAB的数值计算(三)曲线拟合与插值
开发语言·matlab
爱隐身的官人4 小时前
cfshow-web入门-php特性
python·php·ctf
gb42152874 小时前
java中将租户ID包装为JSQLParser的StringValue表达式对象,JSQLParser指的是?
java·开发语言·python
一朵梨花压海棠go4 小时前
html+js实现表格本地筛选
开发语言·javascript·html·ecmascript
蒋星熠4 小时前
Flutter跨平台工程实践与原理透视:从渲染引擎到高质产物
开发语言·python·算法·flutter·设计模式·性能优化·硬件工程
翻滚丷大头鱼5 小时前
Java 集合Collection—List
java·开发语言
aramae5 小时前
C++ -- 模板
开发语言·c++·笔记·其他
胡耀超5 小时前
4、Python面向对象编程与模块化设计
开发语言·python·ai·大模型·conda·anaconda