yum upgrade php 7.0 to php7.2

yum provides php   #自带的只有5.4版本
yum remove php*

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm         #更新源
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum remove php-common -y     #移除系统自带的php-common
yum install -y php72w php72w-opcache php72w-xml php72w-mcrypt php72w-gd php72w-devel php72w-mysql php72w-intl php72w-mbstring php72w-fpm  #安装依赖包

相关推荐

暂无评论

微信扫一扫,分享到朋友圈

yum upgrade php 7.0 to php7.2