Unknown lvalue ‘ProtectKernelModules‘ in section ‘Service‘

Nov 29 15:45:51 test1 systemd: [/usr/lib/systemd/system/php-fpm.service:31] Unknown lvalue 'ProtectKernelModules' in section 'Service'
Nov 29 15:45:51 test1 systemd: [/usr/lib/systemd/system/php-fpm.service:38] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
Nov 29 15:45:51 test1 systemd: [/usr/lib/systemd/system/php-fpm.service:44] Unknown lvalue 'ProtectControlGroups' in section 'Service'
Nov 29 15:45:51 test1 systemd: [/usr/lib/systemd/system/php-fpm.service:47] Unknown lvalue 'RestrictRealtime' in section 'Service'
Nov 29 15:45:51 test1 systemd: [/usr/lib/systemd/system/php-fpm.service:54] Unknown lvalue 'RestrictNamespaces' in section 'Service'

vim /usr/lib/systemd/system/php-fpm.service

修改配置

ProtectKernelModules=true

改为

ProtectKernelModules=yes

其他同理。。。

你可能感兴趣的:(centos,php)