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.
查看PHP-FPM状态
查看状态是否报错,或者看看能不能从状态看出点问题来。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[root@ECS- bin]# systemctl status php-fpm.service ● php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2023-05-19 13:16:46 UTC; 8s ago Process: 9963 ExecStart=/usr/sbin/php-fpm --nodaemonize (code=exited, status=78) Main PID: 9963 (code=exited, status=78)
May 19 13:16:46 ECS-4214242469 systemd[1]: Starting The PHP FastCGI Process Manager... May 19 13:16:46 ECS-4214242469 php-fpm[9963]: [19-May-2023 13:16:46] ERROR: [/etc/php-fpm.d/www.conf:126] value is NULL for a ZEND_INI_PARSER_ENTRY May 19 13:16:46 ECS-4214242469 php-fpm[9963]: [19-May-2023 13:16:46] ERROR: Unable to include /etc/php-fpm.d/www.conf from /etc/php-fpm.conf at line 126 May 19 13:16:46 ECS-4214242469 php-fpm[9963]: [19-May-2023 13:16:46] ERROR: failed to load configuration file '/etc/php-fpm.conf' May 19 13:16:46 ECS-4214242469 php-fpm[9963]: [19-May-2023 13:16:46] ERROR: FPM initialization failed May 19 13:16:46 ECS-4214242469 systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a May 19 13:16:46 ECS-4214242469 systemd[1]: Failed to start The PHP FastCGI Process Manager. May 19 13:16:46 ECS-4214242469 systemd[1]: Unit php-fpm.service entered failed state. May 19 13:16:46 ECS-4214242469 systemd[1]: php-fpm.service failed.
[root@ECS-429 bin]# journalctl -xe May 19 12:50:58 ECS-4214242469 polkitd[578]: Unregistered Authentication Agent for unix-process:31844:27898409 (system bus name :1.278, object path /org/fr May 19 12:52:28 ECS-4214242469 polkitd[578]: Registered Authentication Agent for unix-process:32471:27907496 (system bus name :1.279 [/usr/bin/pkttyagent - May 19 12:52:28 ECS-4214242469 systemd[1]: Starting The PHP FastCGI Process Manager... -- Subject: Unit php-fpm.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit php-fpm.service has begun starting up. May 19 12:52:28 ECS-4214242469 php-fpm[32477]: [19-May-2023 12:52:28] ALERT: [pool www] pm.min_spare_servers(5) and pm.max_spare_servers(35) cannot be grea May 19 12:52:28 ECS-4214242469 php-fpm[32477]: [19-May-2023 12:52:28] ERROR: failed to post process the configuration May 19 12:52:28 ECS-4214242469 php-fpm[32477]: [19-May-2023 12:52:28] ERROR: FPM initialization failed May 19 12:52:28 ECS-4214242469 systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a May 19 12:52:28 ECS-4214242469 systemd[1]: Failed to start The PHP FastCGI Process Manager. -- Subject: Unit php-fpm.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit php-fpm.service has failed. -- -- The result is failed. May 19 12:52:28 ECS-4214242469 systemd[1]: Unit php-fpm.service entered failed state. May 19 12:52:28 ECS-4214242469 systemd[1]: php-fpm.service failed. May 19 12:52:28 ECS-4214242469 polkitd[578]: Unregistered Authentication Agent for unix-process:32471:27907496 (system bus name :1.279, object path /org/fr May 19 12:54:03 ECS-4214242469 polkitd[578]: Registered Authentication Agent for unix-process:694:27916937 (system bus name :1.280 [/usr/bin/pkttyagent --n May 19 12:54:03 ECS-4214242469 systemd[1]: Starting The PHP FastCGI Process Manager... -- Subject: Unit php-fpm.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit php-fpm.service has begun starting up. May 19 12:54:03 ECS-4214242469 php-fpm[700]: [19-May-2023 12:54:03] ALERT: [pool www] pm.min_spare_servers(5) and pm.max_spare_servers(35) cannot be greate May 19 12:54:03 ECS-4214242469 php-fpm[700]: [19-May-2023 12:54:03] ERROR: failed to post process the configuration May 19 12:54:03 ECS-4214242469 php-fpm[700]: [19-May-2023 12:54:03] ERROR: FPM initialization failed May 19 12:54:03 ECS-4214242469 systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a May 19 12:54:03 ECS-4214242469 polkitd[578]: Unregistered Authentication Agent for unix-process:694:27916937 (system bus name :1.280, object path /org/free May 19 12:54:03 ECS-4214242469 systemd[1]: Failed to start The PHP FastCGI Process Manager. -- Subject: Unit php-fpm.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit php-fpm.service has failed. -- -- The result is failed. May 19 12:54:03 ECS-4214242469 systemd[1]: Unit php-fpm.service entered failed state. May 19 12:54:03 ECS-4214242469 systemd[1]: php-fpm.service failed.