centos 6.x把php5.3 升级成5.6

    xiaoxiao2021-03-26  10

    centos 6.x把php5.3 安装成 5.6

    # rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

    使用yum list命令查看可安装的包(Packege)。 yum list --enablerepo=remi --enablerepo=remi-php56 | grep php

    安装:

    # yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof

    用PHP命令查看版本。

    # php --version

    重启apache

    转载请注明原文地址: https://ju.6miu.com/read-600373.html

    最新回复(0)