小编Lui*_*íaz的帖子

PHP 安装:错误:无法切换模块的启用流

我尝试使用以下命令将 php 从 7.2 升级到 centos 8 中的最新 7.4 版本:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm

dnf module list php
Run Code Online (Sandbox Code Playgroud)

但是当我启动这个命令时: dnf module enable php:remi-7.4 -y

我收到此错误:

Last metadata expiration check: 0:05:44 ago on Fri 24 Jul 2020 08:56:07 PM CEST.
Dependencies resolved.
The operation would result in switching of module 'php' stream '7.2' to stream 'remi-7.4'
Error: It is not possible to switch enabled streams of a module.
It is recommended to remove all installed content from the …
Run Code Online (Sandbox Code Playgroud)

php centos8

4
推荐指数
1
解决办法
4718
查看次数

标签 统计

centos8 ×1

php ×1