执行启动php服务的时候出现启动失败的错误,提示
Failed to start LSB: starts php-fpm.如下执行所示
[root@aa]# service php-fpm start
Redirecting to /bin/systemctl start php-fpm.service
Job for php-fpm-56.service failed because the control process exited with error code. See "systemctl status php-fpm-56.service" and "journalctl -xe" for details.
[root@aa]# systemctl status php-fpm-56.service
● php-fpm-56.service - LSB: starts php-fpm
Loaded: loaded (/etc/rc.d/init.d/php-fpm-56; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-08-04 10:16:13 CST; 20s ago
Docs: man:systemd-sysv-generator(8)
Process: 22962 ExecStop=/etc/rc.d/init.d/php-fpm-56 stop (code=exited, status=1/FAILURE)
Process: 24522 ExecStart=/etc/rc.d/init.d/php-fpm-56 start (code=exited, status=1/FAILURE)
CGroup: /system.slice/php-fpm-56.service
├─24524 php-fpm: master process (/www/server/php/56/etc/php-fpm.conf)
├─25953 php-fpm: pool www
├─25955 php-fpm: pool www
├─25958 php-fpm: pool www
├─25959 php-fpm: pool www
├─25960 php-fpm: pool www
└─25961 php-fpm: pool www
Aug 04 10:16:03 10-46-141-82 systemd[1]: Starting LSB: starts php-fpm...
Aug 04 10:16:13 10-46-141-82 php-fpm-56[24522]: Starting php-fpm [04-Aug-2021 10:16:13] ERROR: the master process didn't send back its status (via the pipe to the calling process)
Aug 04 10:16:13 10-46-141-82 php-fpm-56[24522]: failed
Aug 04 10:16:13 10-46-141-82 systemd[1]: php-fpm-56.service: control process exited, code=exited status=1
Aug 04 10:16:13 10-46-141-82 systemd[1]: Failed to start LSB: starts php-fpm.
Aug 04 10:16:13 10-46-141-82 systemd[1]: Unit php-fpm-56.service entered failed state.
Aug 04 10:16:13 10-46-141-82 systemd[1]: php-fpm-56.service failed.
[root@aa]# ps -e | grep php-fpm
25953 ? 00:46:27 php-fpm
25955 ? 00:47:06 php-fpm
25958 ? 00:46:14 php-fpm
25959 ? 00:47:05 php-fpm
25960 ? 00:45:41 php-fpm
25961 ? 00:45:47 php-fpm
[root@aa]# kill 25953 25955 25958 25959 25960 25961
[root@aa]# ps -e | grep php-fpm
[root@aa]# systemctl start php-fpm-56.service
[root@aa]# systemctl status php-fpm-56.service
● php-fpm-56.service - LSB: starts php-fpm
Loaded: loaded (/etc/rc.d/init.d/php-fpm-56; bad; vendor preset: disabled)
Active: active (running) since Wed 2021-08-04 10:33:32 CST; 8s ago
Docs: man:systemd-sysv-generator(8)
Process: 22962 ExecStop=/etc/rc.d/init.d/php-fpm-56 stop (code=exited, status=1/FAILURE)
Process: 26222 ExecStart=/etc/rc.d/init.d/php-fpm-56 start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/php-fpm-56.service
├─26224 php-fpm: master process (/www/server/php/56/etc/php-fpm.conf)
├─26225 php-fpm: pool www
├─26226 php-fpm: pool www
├─26227 php-fpm: pool www
├─26228 php-fpm: pool www
├─26229 php-fpm: pool www
├─26230 php-fpm: pool www
├─26231 php-fpm: pool www
├─26232 php-fpm: pool www
├─26233 php-fpm: pool www
├─26234 php-fpm: pool www
├─26235 php-fpm: pool www
├─26236 php-fpm: pool www
├─26237 php-fpm: pool www
├─26238 php-fpm: pool www
├─26239 php-fpm: pool www
├─26241 php-fpm: pool www
├─26243 php-fpm: pool www
├─26244 php-fpm: pool www
└─26249 php-fpm: pool www
Aug 04 10:33:32 10-46-141-82 systemd[1]: Starting LSB: starts php-fpm...
Aug 04 10:33:32 10-46-141-82 php-fpm-56[26222]: Starting php-fpm done
Aug 04 10:33:32 10-46-141-82 systemd[1]: Started LSB: starts php-fpm.
?究其原因,跟nginx一样都是进程占用,杀死占用的进程就好了。。。。。。。。。。。。。
|