CentOS7 nginx+php-fpmを入れたが、php-fpmが動かなかった場合の解決方法

環境
CentOS 7.9
nginx

エラー現象
$sudo systemctl start php-fpm
Failed to start php-fpm.service: Unit not found.

システムの設定ファイルが置いている場所を確認する
$ls /etc/systemd/system/
結果
drwxr-xr-x 2 root root 6 1月 1 23:59 php74-php-fpm.service.d

下記のコマンドで実行
$sudo systemctl start php74-php-fpm

CentOS 7

Posted by arkgame