久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      OSX下安裝PHP7教程詳解

      內(nèi)容概要

      1、安裝homebrew

      2、通過homebrew安裝php7

      3、配置apache文件

      4、重啟apache

      安裝homebrew

      homebrew是OSX下的最好的包管理軟件(沒有之一),而且非常簡單易用,包都非常新。這是官方幫助homewbrew,如果你安裝了請?zhí)^。同時為確保后面的庫安裝的順利。請更新下homebrew

      $ brew update && brew upgrade

      等待幾分鐘即可

      安裝PHP7

      然后在你的命令行中運行如下幾行代碼

      $ brew tap homebrew/dupes $ brew tap homebrew/versions $ brew tap homebrew/homebrew-php //安裝php7 $ brew install php70 //如果你通過homebrew安裝了之前的php版本 //你可以解綁他們,如果用的就是mac自帶的PHP 就跳過 $ brew unlink php56

      配置apache文件

      //用vim打開 $ sudo vim /etc/apache2/httpd.conf

      如果之前你的httpd.conf已經(jīng)被改的亂七八糟了,建議你找到同個目錄下的httpd.conf~previous 復(fù)制一直覆蓋掉httpd.conf

      //把php5的模塊 注釋掉 #LoadModule php5_module libexec/apache2/libphp5.so //加入php7的模塊 LoadModule php7_module/usr/local/opt/php70/libexec/apache2/libphp7.so

      重啟apache

      $ sudo apachectl start //or $ sudo apachectl restart //如果php發(fā)現(xiàn)不行,執(zhí)行看看報錯 $ apachectl

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