php安装过程出现的⼀些错误问题:
rpm -Uvh mirror.webtatic/yum/el7/webtatic-release.rpm
[root@web01 ~]# yum repolist all 没看到有webtatic源试了很多次都装不了源
解决:
#rpm -qa |grep webtatic 查看
#rpm -e 删除上⾯搜的包
#rpm -Uvh mirror.webtatic/yum/el7/webtatic-release.rpm 再执⾏
#yum search php71 查看yum源是否有php7.1安装包
到此webtatic源就安装上了。
php安装过程出现的⼀些错误问题:
执⾏安装php软件:
yum install -y php71w php71w-cli php71w-common php71w-devel php71w-embedded  php71w-gd php71w-mcrypt php71w-mbstring php71w-pdo php71w-xml php71w-fpm php71w-mysqlnd php71w-opcache  php71w-pecl-memcached php71w-pecl-re 报错:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed
字⾯翻译就是deltarpm没有安装,接下来我们安装就是了
解决:
yum provides '*/applydeltarpm'#查看依赖包的位置
yum -y  install deltarpm            #安装命令
再执⾏安装php软件命令,报错:
Downloading packages:
No Presto metadata available for webtatic 没有webtatic元数据
解决:
#yum clean all
#yum makecache
继续安装报错:
[Errno 12] Timeout on po.webtatic/yum/el7/x86_64/RPMS/php71w-cli-7.1.33-1.w7.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
[Errno 14] curl#6 - "Could not resolve host: po.webtatic; Unknown error"
webtatic 源⽆法访问导致yum⽆法使⽤
解决:
#vi /f
nameserver 8.8.8.8php软件安装包
#yum clean all
#yum makecache
#继续执⾏安装php操作⼜报错:
Could not resolve host: uk.repo.webtatic; Unknown error
warning: /var/cache/yum/x86_64/7/webtatic/packages/php71w-gd-7.1.33-1.w7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY
php71w-gd-7.1.33-1.w7.x86_64.rpm 的公钥尚未安装
解决:安装现有的 gpg 公钥,直接把所有的都安装
[root@web01 ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-*
还是⼀直安装不了?
webtatic 源⽆法访问导致yum⽆法使⽤:
14: curl#6 - "Could not resolve host: mirror.webtatic; Unknown error"
⽆法解析主机(域名)
修改/pos.po
baseurl=po.webtatic/yum/el7/x86_64
[root@web01 ~]# yum --执⾏安装就好了(注意它有可能会⼀直尝试别的镜像,不⽤管它耐⼼等待即可)

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。