OPcache 启用 JIT
Debian 12 系统自带的 PHP 版本是 8.2.31,默认启用 OPcache、但是禁用 JIT。在 WWW 根目录中修改 .htaccess 或者 .user.ini 的配置无法启动 JIT,需要修改 /etc/php/8.2/fpm/conf.d 目录下的 10-opcache.ini 文件(其实是链接到 /etc/php/8.2/mods-available/opcache.ini ),添加以下内容:
opcache.jit=tracing
opcache.jit_buffer_size=64M
然后重启 PHP-FPM 即可:
sudo systemctl restart php8.2-fpm.service