php fpm is stop,lanmp 服务器 的php-fpm is stop! 问题恢复

这篇博客介绍了当遇到PHP-FPM停止运行的情况时如何进行故障排查和恢复。通过运行‘/root/lnmpstatus’检查LNMP(Linux + Nginx + MySQL + PHP)服务的状态,发现PHP-FPM显示为停止。解决方法是重启PHP-FPM服务,命令为‘/usr/local/php/sbin/php-fpm reload’。如果重启后服务仍不稳定,可以使用‘/root/lnmprestart’命令重启整个LNMP环境来确保服务正常运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

0e3ea6bd97d7c2dd9d5683a911f062c5.png

php-fpm is stop! 问题恢复

1.先查看下问题,查看lnmp的服务状态

/root/lnmp status

=========================================================================

=========================================================================

Manager for LNMP V1.1 , Written by Licess

=========================================================================

LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux

This script is a tool to Manage status of lnmp

For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}

=========================================================================

nginx (pid 13725 13724 13723 13722 13721 13719 13718 13717 13716) is running...

php-fpm is stop!

SUCCESS! MySQL running (13688)

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:62288 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN

tcp 0 0 :::62288 :::* LISTEN

解决方法:

1.重启php-fpm 就行了

单独重启nginx或者mysql、php:

nginx : kill nginx进程ID,再/usr/local/nginx/sbin/nginx

mysql :/etc/init.d/mysql restart

php:没有重启

phpfpm:/usr/local/php/sbin/php-fpm reload

2.重启后,过段时间又访问不了,再重启下lnmp

/root/lnmp restart

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值