1. 程式人生 > >CentOS7yum安裝PHP7.2

CentOS7yum安裝PHP7.2

版權宣告:本文為博主原創文章,未經博主允許不得轉載。    https://blog.csdn.net/hu_zhe_kan/article/details/79368169
如果之前已經安裝我們先解除安裝一下

yum -y remove php*
1

由於linux的yum源不存在php7.x,所以我們要更改yum源

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm   
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm    
1
2

yum 安裝php72w和各種拓展,選自己需要的即可

yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
--------------------- 
作者:胡嚞衎 
來源:CSDN 
原文:https://blog.csdn.net/hu_zhe_kan/article/details/79368169 
版權宣告:本文為博主原創文章,轉載請附上博文連結!