久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      解決centos系統(tǒng)安裝php 7.2時出現(xiàn)的異常問題

      解決centos系統(tǒng)安裝php 7.2時出現(xiàn)的異常問題

      我們知道centos系統(tǒng)內(nèi)部是自帶了php 5的,因此在安裝php 7.2時可能會遇到很多問題。下面我們就來一一解決安裝過程中遇到的問題。

      首先獲取rpm:

      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

      然后可以利用 sudo yum list php*查看目前都有php的什么版本了,可以發(fā)現(xiàn)從4-7.2的版本都有,7.2版本名為72w,因此安裝該版本即可:

      sudo yum -y install php72w

      遇到問題:

      Transaction check error:   file /etc/httpd/conf.d/php.conf from install of mod_php72w-7.2.14-1.w7.x86_64 conflicts with file from package php-5.4.16-46.el7.x86_64   file /etc/httpd/conf.modules.d/10-php.conf from install of mod_php72w-7.2.14-1.w7.x86_64 conflicts with file from package php-5.4.16-46.el7.x86_64  錯誤概要 -------------

      解決:

      yum -y remove php-5.4.16-46.el7.x86_64

      但安裝完畢后,輸入php -v發(fā)現(xiàn)并沒有該命令,因為php72w只是安裝了php最小的庫,一些應(yīng)用還未安裝,因此安裝一些拓展包即可:

      (學(xué)習(xí)視頻分享:php視頻教程)

      yum -y install php72w-cli php72w-common php72w-devel php72w-mysql

      遇到問題:

      錯誤:php72w-common conflicts with php-common-5.4.16-46.el7.x86_64
      您可以嘗試添加 –skip-broken 選項來解決該問題
      您可以嘗試執(zhí)行:rpm -Va –nofiles –nodigest

      解決:

      yum -y remove php-common-5.4.16-46.el7.x86_64

      然后輸入php -v出現(xiàn)如下信息:

      PHP 7.2.14 (cli) (built: Jan 12 2019 12:47:33) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號