<ruby id="cmmwe"></ruby>

  • <var id="cmmwe"></var>
    <b id="cmmwe"></b>
    <source id="cmmwe"><track id="cmmwe"><ins id="cmmwe"></ins></track></source>

      1. Centos下如何Yum安裝php5.5、php5.6、php7.0等版本

        時間:2016-08-06 來源:風信官網 點擊: 2642次

        1.檢查當前安裝的PHP包

        yum list installed | grep php

        如果有安裝的PHP包,先刪除他們

        yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64

        2、設置yum源

        Webtatic EL7 for CentOS/RHEL 7:

        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

        Webtatic EL6 for CentOS/RHEL 6:

        rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
        rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

        Webtatic EL5.1 for CentOS/RHEL 5:

        rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm
        rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm

        如果想刪除上面安裝的包,重新安裝
        rpm -qa | grep webstatic
        rpm -e  上面搜索到的包即可

        3.運行yum install安裝支持包

        php5.5的版本

        yum install php55w.x86_64 php55w-cli.x86_64 php55w-common.x86_64 php55w-gd.x86_64 php55w-ldap.x86_64 php55w-mbstring.x86_64 php55w-mcrypt.x86_64 php55w-mysql.x86_64 php55w-pdo.x86_64

        php5.6的版本

        yum install php56w.x86_64 php56w-cli.x86_64 php56w-common.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mcrypt.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64

        php7.0的版本

        yum install php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64

        4.安裝PHP FPM

        php5.5的版本:yum install php55w-fpm php55w-opcache
        php5.6的版本:yum install php56w-fpm
        php7.0的版本:yum install php70w-fpm

        Zend Opcache 已經集成在了PHP 5.5里面,編譯安裝PHP5.5的時候加上--enable-opcache就行了。
        X孝感風信網絡科技有限公司

        截屏,微信識別二維碼

        微信號:189 8648 0214

        (點擊微信號復制,添加好友)

          打開微信

        微信號已復制,請打開微信添加咨詢詳情!
        国产免费又爽又刺激在线观看,免费一级毛片在线播放放视频,最近日本免费观看高清视频,亚洲无码视频观看
        <ruby id="cmmwe"></ruby>

      2. <var id="cmmwe"></var>
        <b id="cmmwe"></b>
        <source id="cmmwe"><track id="cmmwe"><ins id="cmmwe"></ins></track></source>