<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                #### PHP緩存加速器選擇 常見的PHP緩存加速器有xcache、eaccelerator、APC(Alternative PHP Cache)、ZendOpcache **5.5以前 **第一選擇xcache - 效率更高、更快 - 社區活躍、使用廣泛、穩定 **5.6以后 **第一選擇ZendOpcache - 官方研發,發展潛力好 - 編譯直接使用--enable-opcache ##### 編譯安裝xcache ```shell cd /opt wget http://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz tar xf xcache-3.2.0.tar.gz cd xcache-3.2.0 /app/php/bin/phpize ./configure --enable-xcache --with-php-config=/app/php/bin/php-config make make install ``` 配置生效 ```shell echo "20160926 BrandynX" >> /app/php/lib/php.ini echo "This xcache config." >> /app/php/lib/php.ini cat /opt/xcache-3.2.0/xcache.ini >> /app/php/lib/php.ini ``` 主要參數 ```shell xcache.size = 128M xcache.count = 2 xcache.slots = 8K xcache.ttl = 86400 xcache.gc_interval = 3600 xcache.var_size = 0 ``` ##### PHP5.5以前,編譯ZendOpcache 編譯安裝ZendOpcache(插件) ```shell cd /opt/ wget http://pecl.php.net/get/zendopcache-7.0.5.tgz tar xzf zendopcache-7.0.5.tgz cd zendopcache-7.0.5 /app/php/bin/phpize ./configure --enable-opcache --with-php-config=/app/php/bin/php-config make make install ``` 配置生效(通用) ```shell zend_extension= /app/php/lib/php/extensions/no-debug-non-zts-20131226/opcache.so opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1 ``` #### 其他必備模塊 ##### 編譯安裝Memcache ```shell cd /opt/ wget http://pecl.php.net/get/memcache-2.2.7.tgz tar xzf memcache-2.2.7.tgz cd memcache-2.2.7 /app/php/bin/phpize ./configure --enable-memcache --with-php-config=/app/php/bin/php-config make make install ll /app/php/lib/php/extensions/no-debug-non-zts-20131226/ ``` ##### 插件安裝imagick imagick可以根據web應用程序的需要動態生成圖片, 還可以對一個(或一組)圖片進行改變大小、旋轉、銳化、減色或增加特效等操作,依賴imagemagick工具 1. 安裝imagemagick(有rpm包) ```shell cd /opt/ wget http://www.imagemagick.org/download/ImageMagick.tar.gz #wget http://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-7.0.3-1.x86_64.rpm tar xzf ImageMagick.tar.gz cd /opt/ImageMagick-7.0.3-1/ ./configure make make install ``` 2. 安裝imagick ```shell cd /opt/ wget http://pecl.php.net/get/imagick-3.4.3RC1.tgz tar xzf imagick-3.4.3RC1.tgz cd imagick-3.4.3RC1 ./configure --with-php-config=/app/php/bin/php-config make make install ``` 編輯php.ini,結尾添加 ```shell extension_dir = "/app/php/lib/php/extensions/no-debug-non-zts-20131226/" extension = memcache.so extension = imagick.so ``` ##### 動態添加libmcrypt模塊(可選) ```shell cd /opt wget http://jaist.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz tar xzf libmcrypt-2.5.8.tar.gz cd libmcrypt-2.5.8 ./configure make && make install sleep 2 /sbin/ldconfig cd libltdl/ ./configure --dnable-ltdl-install make && make install ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看