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

      PHP7在開發(fā)機上的安裝使用之旅

      下載7:

      $ cd $ mkdir php7test $ cd php7test $ wget http://cn2.php.net/get/php-7.0.7.tar.gz/from/this/mirror $ tar -zxvf php-7.0.7.tar.gz $ cd php-7.0.7

      安裝一些依賴:

      $ yum -y install libjpeg libpng freetype libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel libmcrypt-devel curl-devel libxslt-devel lib2 lib2-devel

      配置configure

      $ ./configure --prefix=/data/php7 --with-config-file-path=/data/php7/etc --with-config-file-scan-dir=/data/php7/etc/php.d --with-mcrypt=/usr/include --enable-mysqlnd --with-mysqli --with-pdo-mysql --enable-fpm --with-fpm-user=xxxxxxxxxx --with-fpm-group=xxxxxxxxxx --with-gd --with-iconv --enable-xml --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-zip --enable-soap --without-pear --with-gettext --enable-session --with-curl --with-jpeg-dir --with-freetype-dir --with-zlib --enable-bcmath --enable-sockets

      然后:

      $ make $ make install

      默認安裝好之后,你會發(fā)現(xiàn)/data/php7/etc下面沒有php.ini文件,這個去哪里要呢?在php7的源碼安裝包都有。

      進入源碼安裝包的目錄

      $ cd  $ cd php7test/php-7.0.7 $ ls

      可以看到有兩個php.ini-xxx的文件

      $ cp php.ini* /data/php7/etc/ $ cp php.ini-production /data/php7/etc/php.ini

      啟用php-fpm

      先配置config文件

      $ cd /data/php7/etc $ cp php-fpm.conf.default php-fpm.conf $ cp php-fpm.d/www.conf.default php-fpm.d/www.conf

      在編譯之前./configure的時候,我們都已經(jīng)確定了一些配置,比如運行fpm的用戶和用戶組之類的,所以默認配置應該不會存在路徑問題和權(quán)限問題。

      搞定php-fpm的服務載入

      我們希望使用service php-fpm start|stop|restart這些操作來實現(xiàn)服務的重啟,但沒有像nginx那么復雜,php編譯好之后,給我們提供了一個php-fpm的程序,不需要我再編寫分享了。這個文件放在php編譯源碼目錄中:

      $ cd  $ cd php7test/php-7.0.7/sapi/fpm $ cp init.d.php-fpm /etc/init.d/php-fpm $ chmod +x /etc/init.d/php-fpm $ chkconfig --add php-fpm $ chkconfig php-fpm on

      通過上面這個操作,我們就可以使用sevice php-fpm start來啟用php-fpm了。用ps -ef | grep php-fpm看看進程吧。

      或者通過使用/data/php7/sbin/php-fpm來啟動php7.

      Finish & Success

      推薦教程:《PHP7》

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