面板安装php/mysq/nginx失败问题解决

小鱼儿 2018-1-18 2782

在面板中安装appnode打包的php是出现了安装失败, 出现如下提示:
Error: Package: appnode-php72-php-7.2.1-1.el7.x86_64 (appnode)
Requires: httpd-mmn = 20120211x8664
Error: Package: appnode-php72-php-7.2.1-1.el7.x86_64 (appnode)
Requires: httpd

1 要解决这个问题, 首先要检查下被依赖的包是否存在.
httpd包存在updates中, 是所有的系统自带的,不过还是先检查下源是否存在, 正常


yum repolist
如果出现截图中的updates 说明源是正常的.


如果没有出现, 可以安装一个阿里的base即可.
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo


2 updates 源正常, 可还是出现安装失败, 那么就要检查下 /etc/yum.conf配置了
看看在配置中是否有把某些包给排除了
像这样的
exclude=httpd nginx php mysql mairadb python-psutil python2-psuti
删除这个配置, 重试即可.



最新回复 (0)
返回
发新帖