The process is quite straightforward, first we need to install epel and the webtatic repository:

  1. # yum install epel-release
  2. # rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

从5.6到7.1

  1. # yum install yum-plugin-replace
  2. # yum replace php-common --replace-with=php71w-common

从5.6到7.0

  1. # yum install yum-plugin-replace
  2. # yum replace php-common --replace-with=php70w-common

从7.0到7.1

  1. # yum install yum-plugin-replace
  2. # yum replace php70w-common --replace-with=php71w-common

可以看下这个:https://www.marksei.com/install-php-7-centos-7/

分类: web

标签:   php