您有个知识币

【退出】

阿里云centos7.x升级php5.x到5.6的方法

执行下面的命令升级软件仓库

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

执行下面的命令删除php

yum remove php-common

然后像安装那样问你是否继续的,输入yes即可

安装php 5.6版本(php56w-devel这个不是必需的)

yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring

yum install -y php56w-fpm

重启服务

service php-fpm start

service nginx restart

查看最新的版本

php -v

将php-fpm开机启动命令:

systemctl enable php-fpm.service

本文固定链接: http://www.webzhishi.com/centos7-x-php56/ | web知识网

阿里云centos7.x升级php5.x到5.6的方法:目前有1 条留言

  1. 黑白:  

    <b>经检验可以使用,大家可放心使用。</b>

    2019-02-01 11:19:34 [回复]

发表评论