当我只有 Nginx/php-fpm 时,CentOS 7 上的 httpd-mmn 问题

当我只有 Nginx/php-fpm 时,CentOS 7 上的 httpd-mmn 问题

我使用的是 CentOS 7。当我执行 时yum update,它显示了这个问题:

** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
php-7.3.4-1.el7.remi.x86_64 has missing requires of httpd-mmn = ('0', '20120211x8664', None)

我的服务器上没有 httpd 或 Apache。我拥有的存储库包括:

# yum repolist 
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * base: mirror.cc.columbia.edu
 * epel: epel.mirror.constant.com
 * extras: mirror.cc.columbia.edu
 * remi-php72: mirror.team-cymru.com
 * remi-php73: mirror.team-cymru.com
 * remi-safe: mirror.team-cymru.com
 * updates: mirror.cc.columbia.edu
repo id                                      repo name                                                                        status
base/7/x86_64                                CentOS-7 - Base                                                                  10,019
epel/x86_64                                  Extra Packages for Enterprise Linux 7 - x86_64                                   13,125
extras/7/x86_64                              CentOS-7 - Extras                                                                   387
mariadb                                      MariaDB                                                                              67
nginx/x86_64                                 nginx repo                                                                          150
remi-php72                                   Remi's PHP 7.2 RPM repository for Enterprise Linux 7 - x86_64                       367
remi-php73                                   Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - x86_64                       307
remi-safe                                    Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                        3,188
robert-gcj/x86_64                            Copr repo for gcj owned by robert                                                    16
robert-pdftk/x86_64                          Copr repo for pdftk owned by robert                                                   3
updates/7/x86_64                             CentOS-7 - Updates                                                                1,840
repolist: 29,475

我需要做什么才能消除 yum 更新期间出现的错误?

答案1

您可以删除该软件包。名为的软件包php仅适用于 Apache 安装,不用于 nginx/php-fpm。该软件包名为php-fpm,您应该已经安装它。

yum remove php

如果您尚未安装 php-fpm,请执行此命令:

yum swap php php-fpm

相关内容