使用 Remi 存储库安装 php-opcache 和 php-pecl-apcu 时出现问题
尝试使用 Remi 存储库安装 php-opcache 和 php-pecl-apcu 时,遇到以下错误:
dnf --enablerepo=remi install php-opcache php-pecl-apcu
All matches were filtered out by modular filtering for argument: php-opcache
All matches were filtered out by modular filtering for argument: php-pecl-apcu
环境:
cat /etc/redhat-release
Rocky Linux release 8.9 (Green Obsidian)
环境对比:
当我设置另一台Rocky8服务器并进行测试时,在验证服务器上安装顺利。 当我比较这些时,安装失败的环境启用了该模块。
dnf module list php
@modulefailsafe
Name Stream Profiles Summary
php remi-8.3 [e] common, devel, minimal PHP scripting language
Rocky Linux 8 - AppStream
Name Stream Profiles Summary
php 7.2 [d] common [d], devel, minimal PHP scripting language
php 7.3 common [d], devel, minimal PHP scripting language
php 7.4 common [d], devel, minimal PHP scripting language
php 8.0 common [d], devel, minimal PHP scripting language
认为这可能是问题所在,我执行了以下命令来禁用它,但没有什么区别。
dnf module disable php:remi-8.3
这是我第一次设置服务器,我对 Linux 服务器没有深入的了解,所以如果您需要更多信息,请告诉我。
正确的存储库使用和配置 请参阅向导说明