要启用一个扩展插件 修改了 php.ini 后 systemctl restart php74-php-fpm 一直不能成功 看 journalctl -u php74-php-fpm 也没有具体信息 就一行红字 Failed to start The PHP FastCGI Process Manager. 于是打算用./php-fpm -y /etc/opt/remi/php74/php-fpm.conf 来试试能不能抓到报错信息 结果正常启动了 kill 之后再直接使用 service 文件里中 ExecStart 的设置值 (/opt/remi/php74/root/usr/sbin/php-fpm --nodaemonize)也成功了
cat /usr/lib/systemd/system/php74-php-fpm.service # It's not recommended to modify this file in-place, because it # will be overwritten during upgrades. If you want to customize, # the best way is to use the "systemctl edit" command.
[Unit] Description=The PHP FastCGI Process Manager After=syslog.target network.target